summaryrefslogtreecommitdiff
path: root/include/bsd/cdefs.h
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-05-28 10:39:54 +0200
committerGuillem Jover <guillem@hadrons.org>2011-05-29 02:41:15 +0200
commit0bf3d3913fe2adb5974add44f93a5de78bd06710 (patch)
tree9e5f6f08dd47a397a864e0cc56ab1a4d6a220629 /include/bsd/cdefs.h
parent913cdd91b1d696e02dff22273b7721d8dad4bf2a (diff)
downloadlibbsd-0bf3d3913fe2adb5974add44f93a5de78bd06710.tar.gz
Include the correct deprecated headeres when using the overlay
Diffstat (limited to 'include/bsd/cdefs.h')
-rw-r--r--include/bsd/cdefs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bsd/cdefs.h b/include/bsd/cdefs.h
index 3039930..bbb6907 100644
--- a/include/bsd/cdefs.h
+++ b/include/bsd/cdefs.h
@@ -33,7 +33,11 @@
#warning "Deprecated header, use <bsd/sys/cdefs.h> or libbsd-overlay.pc instead."
#endif
+#ifdef LIBBSD_OVERLAY
+#include <sys/cdefs.h>
+#else
#include <bsd/sys/cdefs.h>
+#endif
#endif