From 0bf3d3913fe2adb5974add44f93a5de78bd06710 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sat, 28 May 2011 10:39:54 +0200 Subject: Include the correct deprecated headeres when using the overlay --- include/bsd/cdefs.h | 4 ++++ include/bsd/ip_icmp.h | 4 ++++ include/bsd/queue.h | 4 ++++ include/bsd/random.h | 4 ++++ include/bsd/stdlib.h | 5 +++++ include/bsd/string.h | 4 ++++ 6 files changed, 25 insertions(+) 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 or libbsd-overlay.pc instead." #endif +#ifdef LIBBSD_OVERLAY +#include +#else #include +#endif #endif diff --git a/include/bsd/ip_icmp.h b/include/bsd/ip_icmp.h index 65f3ff7..0f34a5a 100644 --- a/include/bsd/ip_icmp.h +++ b/include/bsd/ip_icmp.h @@ -33,7 +33,11 @@ #warning "Deprecated header, use or libbsd-overlay.pc instead." #endif +#ifdef LIBBSD_OVERLAY +#include +#else #include +#endif #endif diff --git a/include/bsd/queue.h b/include/bsd/queue.h index 30775ec..c479230 100644 --- a/include/bsd/queue.h +++ b/include/bsd/queue.h @@ -33,7 +33,11 @@ #warning "Deprecated header, use or libbsd-overlay.pc instead." #endif +#ifdef LIBBSD_OVERLAY +#include +#else #include +#endif #endif diff --git a/include/bsd/random.h b/include/bsd/random.h index 7b35f8b..3b90a66 100644 --- a/include/bsd/random.h +++ b/include/bsd/random.h @@ -33,7 +33,11 @@ #warning "Deprecated header, use instead." #endif +#ifdef LIBBSD_OVERLAY +#include +#else #include +#endif #endif diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index 8e885f6..217a416 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -48,9 +48,14 @@ /* FIXME: Temporary inclusions to avoid API breakage, will be removed soon. */ #ifndef LIBBSD_DISABLE_DEPRECATED +#ifdef LIBBSD_OVERLAY +#include +#include +#else #include #include #endif +#endif __BEGIN_DECLS u_int32_t arc4random(); diff --git a/include/bsd/string.h b/include/bsd/string.h index b0199d7..fb7d4a7 100644 --- a/include/bsd/string.h +++ b/include/bsd/string.h @@ -38,8 +38,12 @@ #ifndef LIBBSD_DISABLE_DEPRECATED /* FIXME: Temporary inclusion to avoid API breakage, will be removed soon. */ +#ifdef LIBBSD_OVERLAY +#include +#else #include #endif +#endif __BEGIN_DECLS size_t strlcpy(char *dst, const char *src, size_t siz); -- cgit v1.2.3