eal: fix build with some gcc 4.4 toolchains
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 12 Feb 2014 17:04:33 +0000 (17:04 +0000)
committerDavid Marchand <david.marchand@6wind.com>
Tue, 25 Feb 2014 20:29:18 +0000 (21:29 +0100)
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/linuxapp/eal/eal_alarm.c

index 9a42df5..f3d6e65 100644 (file)
 #include <rte_spinlock.h>
 #include <eal_private.h>
 
+#ifndef        TFD_NONBLOCK
+#include <fcntl.h>
+#define        TFD_NONBLOCK    O_NONBLOCK
+#endif
+
 #define NS_PER_US 1000
 #define US_PER_MS 1000
 #define MS_PER_S 1000