From 8b6a74775b918f203ceee3d70ca8b9f7e0256b5f Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 23 Feb 2011 12:38:42 +0100 Subject: Conditionalize temporary compatibility inclusions These inclusions were in place for backward compatibility purposes, when the headers were split so that code using them would not break. Make it possible for applications to disable them by defining LIBBSD_CLEAN_INCLUDES so that buildability can be tested and fixed before they get removed in a subsequent release. --- include/bsd/stdlib.h | 2 ++ include/bsd/string.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index 6736ed1..4a185fc 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -47,8 +47,10 @@ #endif /* FIXME: Temporary inclusions to avoid API breakage, will be removed soon. */ +#ifndef LIBBSD_CLEAN_INCLUDES #include #include +#endif __BEGIN_DECLS u_int32_t arc4random(); diff --git a/include/bsd/string.h b/include/bsd/string.h index edc16fc..f9e733f 100644 --- a/include/bsd/string.h +++ b/include/bsd/string.h @@ -36,8 +36,10 @@ #include #endif +#ifndef LIBBSD_CLEAN_INCLUDES /* FIXME: Temporary inclusion to avoid API breakage, will be removed soon. */ #include +#endif __BEGIN_DECLS size_t strlcpy(char *dst, const char *src, size_t siz); -- cgit v1.2.3