Blob Blame History Raw
From 1f9a592cbfd02e9ecea63abb31d6f34d0b85d498 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
Date: Sun, 21 Jan 2018 14:59:38 +0100
Subject: [PATCH] firstboot: Include <crypt.h> for declaration of crypt() if
 needed

---
 src/firstboot/firstboot.c | 4 ++++
 1 file changed, 4 insertions(+)

Index: systemd-3e14c4c1876b4dfeb8bf511185f70fef8d04a153/src/firstboot/firstboot.c
===================================================================
--- systemd-3e14c4c1876b4dfeb8bf511185f70fef8d04a153.orig/src/firstboot/firstboot.c
+++ systemd-3e14c4c1876b4dfeb8bf511185f70fef8d04a153/src/firstboot/firstboot.c
@@ -23,6 +23,10 @@
 #include <shadow.h>
 #include <unistd.h>
 
+#ifndef _XOPEN_CRYPT
+#include <crypt.h>
+#endif
+
 #include "alloc-util.h"
 #include "ask-password-api.h"
 #include "copy.h"