[build] better autoconf checks for time and dirent headers

This commit is contained in:
Al
2015-08-08 21:01:51 -04:00
parent d0679450e3
commit 2ba0e814ad
4 changed files with 234 additions and 8 deletions

View File

@@ -1,9 +1,20 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifdef TIME_WITH_SYS_TIME
#include <sys/time.h>
#include <time.h>
#else
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#include <time.h>
#endif
#endif
#include "libpostal.h"
#include "libpostal_config.h"
#include "log/log.h"
#include "scanner.h"