Fix compilation for uclinux toolchain lacking <sys/timerfd.h>

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-02-19 18:25:21 +01:00
parent 4d0b2e5001
commit d6ce3fbb3d
2 changed files with 5 additions and 2 deletions

View File

@ -49,7 +49,11 @@ static inline int clock_adjtime(clockid_t id, struct timex *tx)
return syscall(__NR_clock_adjtime, id, tx); return syscall(__NR_clock_adjtime, id, tx);
} }
#ifdef __uClinux__ #ifndef __uClinux__
#include <sys/timerfd.h>
#else
static inline int timerfd_create(int clockid, int flags) static inline int timerfd_create(int clockid, int flags)
{ {

1
port.c
View File

@ -21,7 +21,6 @@
#include <malloc.h> #include <malloc.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/timerfd.h>
#include <unistd.h> #include <unistd.h>
#include "bmc.h" #include "bmc.h"