From: Roy Marples Date: Tue, 15 Sep 2015 10:13:53 +0000 (+0000) Subject: Fix compile on kFreeBSD thanks to JS Junior. X-Git-Tag: v6.9.4~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b34912431ad32e6357150e5a7406a035404ab600;p=thirdparty%2Fdhcpcd.git Fix compile on kFreeBSD thanks to JS Junior. --- diff --git a/crypt/sha256.c b/crypt/sha256.c index 7e3ab0fe..222d93ab 100644 --- a/crypt/sha256.c +++ b/crypt/sha256.c @@ -28,6 +28,15 @@ #include +#ifdef __GLIBC__ +# include +#endif +#ifdef BSD +# ifndef __QNX__ +# include +# endif +#endif + #include "../common.h" #include "sha256.h" diff --git a/duid.c b/duid.c index b84c497e..1f71fb2a 100644 --- a/duid.c +++ b/duid.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include