summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-02-23 12:39:58 +0100
committerGuillem Jover <guillem@hadrons.org>2011-05-14 14:18:22 +0200
commitb36c59c0edbd1c215737f16d4bb83feb035d785a (patch)
treee5b44aad249f9533807037f5ff6e0389c8dd9442
parent8b6a74775b918f203ceee3d70ca8b9f7e0256b5f (diff)
downloadlibbsd-b36c59c0edbd1c215737f16d4bb83feb035d785a.tar.gz
Conditionalize <time.h> inclusion from <bsd/bsd.h>
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.
-rw-r--r--include/bsd/bsd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bsd/bsd.h b/include/bsd/bsd.h
index 8ebb12c..bba4ac8 100644
--- a/include/bsd/bsd.h
+++ b/include/bsd/bsd.h
@@ -42,6 +42,8 @@
#include <bsd/md5.h>
/* FIXME: Will be removed in the future. */
+#ifndef LIBBSD_CLEAN_INCLUDES
#include <time.h>
+#endif
#endif