]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Use the non-overlayed libbsd headers when we need our own definitions
authorGuillem Jover <guillem@hadrons.org>
Sat, 12 Dec 2015 13:27:12 +0000 (14:27 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sun, 13 Dec 2015 23:58:51 +0000 (00:58 +0100)
include/bsd/err.h
include/bsd/unistd.h

index b465c1bc154264f193b37c89cb2b2c61c7bacfbf..12fd051d2fd452a6baa5d3d51835f7622fedbaec 100644 (file)
 #ifndef LIBBSD_ERR_H
 #define LIBBSD_ERR_H
 
+#ifdef LIBBSD_OVERLAY
 #include <sys/cdefs.h>
+#else
+#include <bsd/sys/cdefs.h>
+#endif
 
 #include <stdarg.h>
 
index 78a45252e33b506a03f2098caa23a52391fbe01f..1f9c5f8ee13db5b72224a0a2a400705bcd3116bf 100644 (file)
 #ifndef LIBBSD_UNISTD_H
 #define LIBBSD_UNISTD_H
 
+#ifdef LIBBSD_OVERLAY
 #include <sys/cdefs.h>
+#else
+#include <bsd/sys/cdefs.h>
+#endif
 #include <sys/stat.h>
 
 #ifndef S_ISTXT