From d6ce3fbb3dfb1380147d1b089681c17a05712817 Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 19 Feb 2012 18:25:21 +0100 Subject: [PATCH] Fix compilation for uclinux toolchain lacking Signed-off-by: Richard Cochran --- missing.h | 6 +++++- port.c | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/missing.h b/missing.h index 7f0af10..bf82df5 100644 --- a/missing.h +++ b/missing.h @@ -49,7 +49,11 @@ static inline int clock_adjtime(clockid_t id, struct timex *tx) return syscall(__NR_clock_adjtime, id, tx); } -#ifdef __uClinux__ +#ifndef __uClinux__ + +#include + +#else static inline int timerfd_create(int clockid, int flags) { diff --git a/port.c b/port.c index e27e5d0..e7290b3 100644 --- a/port.c +++ b/port.c @@ -21,7 +21,6 @@ #include #include #include -#include #include #include "bmc.h"