[build] better autoconf checks for time and dirent headers
This commit is contained in:
11
src/bench.c
11
src/bench.c
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user