]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Conditionalize <time.h> inclusion from <bsd/bsd.h>
authorGuillem Jover <guillem@hadrons.org>
Wed, 23 Feb 2011 11:39:58 +0000 (12:39 +0100)
committerGuillem Jover <guillem@hadrons.org>
Sat, 14 May 2011 12:18:22 +0000 (14:18 +0200)
This was added long time ago to fix some software which was implicitly
depending on the header through some other header, and to avoid having
to modify such software. Conditionalize it on LIBBSD_CLEAN_INCLUDES,
so that buildability can be tested for its future removal.

include/bsd/bsd.h

index 8ebb12c586470855611fded57ed4e31d7942e809..bba4ac8196d3d365bf05321260f1d60f527387e1 100644 (file)
@@ -42,6 +42,8 @@
 #include <bsd/md5.h>
 
 /* FIXME: Will be removed in the future. */
+#ifndef LIBBSD_CLEAN_INCLUDES
 #include <time.h>
+#endif
 
 #endif