]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Turn <bsd/bsd.h> inert when using LIBBSD_OVERLAY
authorGuillem Jover <guillem@hadrons.org>
Sun, 13 Dec 2015 23:44:47 +0000 (00:44 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sun, 13 Dec 2015 23:58:59 +0000 (00:58 +0100)
Also print a warning stating this fact.

include/bsd/bsd.h

index c246a91c35bbfd62bb32a840e2c7d51971d3c4a3..a4a033e53526883ae11f962a49e5b9664508c563 100644 (file)
 #ifndef LIBBSD_H
 #define LIBBSD_H
 
+#ifdef LIBBSD_OVERLAY
+#warning "This header is meant to be used w/o the libbsd overlay."
+#else
 /*
  * Include all bsd compat headers.
  */
-
 #include <bsd/sys/cdefs.h>
 #include <bsd/sys/queue.h>
 #include <bsd/sys/tree.h>
@@ -40,5 +42,6 @@
 #include <bsd/err.h>
 #include <bsd/getopt.h>
 #include <bsd/md5.h>
+#endif
 
 #endif