]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Fix compile on kFreeBSD thanks to JS Junior.
authorRoy Marples <roy@marples.name>
Tue, 15 Sep 2015 10:13:53 +0000 (10:13 +0000)
committerRoy Marples <roy@marples.name>
Tue, 15 Sep 2015 10:13:53 +0000 (10:13 +0000)
crypt/sha256.c
duid.c

index 7e3ab0feb72efa4063bd9373b7f6becb28c35bed..222d93ab4b82c4b7b1e22bbcc25377272343f0ad 100644 (file)
 
 #include <string.h>
 
+#ifdef __GLIBC__
+#  include <endian.h>
+#endif
+#ifdef BSD
+#  ifndef __QNX__
+#    include <sys/endian.h>
+#  endif
+#endif
+
 #include "../common.h"
 #include "sha256.h"
 
diff --git a/duid.c b/duid.c
index b84c497ee63eb4956a52d122e5bda5e706778b90..1f71fb2ad7a87365f64c8c2113c90a3563541871 100644 (file)
--- a/duid.c
+++ b/duid.c
@@ -36,6 +36,7 @@
 #include <net/if_arp.h>
 
 #include <errno.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>