fix linux build

This commit is contained in:
Ryan Dahl 2011-07-01 09:51:24 -04:00
parent 320057d588
commit 8cd3d71229
2 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,7 @@ EIO_CPPFLAGS += -DEIO_CONFIG_H=\"$(EIO_CONFIG)\"
EIO_CPPFLAGS += -DEIO_STACKSIZE=65536
EIO_CPPFLAGS += -D_LARGEFILE_SOURCE
EIO_CPPFLAGS += -D_FILE_OFFSET_BITS=64
EIO_CPPFLAGS += -D_GNU_SOURCE
eio/eio.o: eio/eio.c
$(CC) $(EIO_CPPFLAGS) $(CFLAGS) -c eio/eio.c -o eio/eio.o

View File

@ -24,6 +24,9 @@
#include <stddef.h>
#include <time.h>
#undef NANOSEC
#define NANOSEC 1000000
/*
* There's probably some way to get time from Linux than gettimeofday(). What
* it is, I don't know.