summaryrefslogtreecommitdiff
path: root/src/cdf_time.c
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2008-10-20 15:14:17 +0000
committerChristos Zoulas <christos@zoulas.com>2008-10-20 15:14:17 +0000
commit11c9590f84974c63fa91da14fdefe5a8b6eb9fe8 (patch)
treeaabef16ffb4ad542e206e71d76d2f56d4d827150 /src/cdf_time.c
parent8512c716eaa946d3ebc50fec349a7f462630c05b (diff)
downloadfile-git-11c9590f84974c63fa91da14fdefe5a8b6eb9fe8.tar.gz
cleanups for non BSD compilation.
Diffstat (limited to 'src/cdf_time.c')
-rw-r--r--src/cdf_time.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cdf_time.c b/src/cdf_time.c
index 96321fce..dbabae61 100644
--- a/src/cdf_time.c
+++ b/src/cdf_time.c
@@ -23,11 +23,24 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <sys/types.h>
#include <stdio.h>
#include <time.h>
+#ifdef TEST
#include <err.h>
+#endif
#include <string.h>
#include <errno.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
#include "cdf.h"