diff options
author | Martin Schwenke <martin@meltin.net> | 2014-09-22 19:38:18 +1000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-10-04 00:11:20 +0200 |
commit | fd9f0c27e71cdda833e9dd24f0eb87ad524e73cf (patch) | |
tree | 40c7cda9b56128a7730516fa1b18e547e3f72831 /lib | |
parent | 1f0e5cb38c6d444d33b7736d43a32439cdf04d81 (diff) | |
download | samba-fd9f0c27e71cdda833e9dd24f0eb87ad524e73cf.tar.gz samba-fd9f0c27e71cdda833e9dd24f0eb87ad524e73cf.tar.xz samba-fd9f0c27e71cdda833e9dd24f0eb87ad524e73cf.zip |
lib/util: Clean up includes for time.[ch]
Allows standalone compile without external includes.h.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/time.c | 6 | ||||
-rw-r--r-- | lib/util/time.h | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/util/time.c b/lib/util/time.c index 78611e4324..4b78e71a78 100644 --- a/lib/util/time.c +++ b/lib/util/time.c @@ -21,9 +21,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include "includes.h" +#include "replace.h" #include "system/time.h" -#include "lib/util/time_basic.h" +#include "byteorder.h" +#include "time_basic.h" +#include "lib/util/time.h" /* Avoid /usr/include/time.h */ /** * @file diff --git a/lib/util/time.h b/lib/util/time.h index 8595bb0613..42d23865b8 100644 --- a/lib/util/time.h +++ b/lib/util/time.h @@ -24,6 +24,10 @@ #ifndef _SAMBA_TIME_H_ #define _SAMBA_TIME_H_ +#include <stdbool.h> +#include <stdint.h> +#include <talloc.h> + #ifndef TIME_T_MIN /* we use 0 here, because (time_t)-1 means error */ #define TIME_T_MIN 0 |