]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] fixed build on alpha-linux + epoll
authorWilly TARREAU <willy@pcw.(none)>
Fri, 16 Jun 2006 22:04:47 +0000 (00:04 +0200)
committerWilly TARREAU <willy@pcw.(none)>
Fri, 16 Jun 2006 22:04:47 +0000 (00:04 +0200)
include/epoll.h

index 4b753839cdf46c5e99e65d03e5db70910859b4b9..189242e783e49b10de430da6a2edf5618ebd935e 100644 (file)
@@ -6,13 +6,17 @@
  */
 
 #include <linux/unistd.h>
+#include <stdint.h>
 
 /* epoll_ctl() commands */
+#ifndef EPOLL_CTL_ADD
 #define EPOLL_CTL_ADD 1
 #define EPOLL_CTL_DEL 2
 #define EPOLL_CTL_MOD 3
+#endif
 
 /* events types (bit fields) */
+#ifndef EPOLLIN
 #define EPOLLIN 1
 #define EPOLLPRI 2
 #define EPOLLOUT 4
@@ -20,6 +24,7 @@
 #define EPOLLHUP 16
 #define EPOLLONESHOT (1 << 30)
 #define EPOLLET (1 << 31)
+#endif
 
 struct epoll_event {
     uint32_t events;
@@ -45,9 +50,9 @@ struct epoll_event {
 #define __NR_epoll_ctl    214
 #define __NR_epoll_wait   215
 #elif defined(__alpha__)
-#define __NR_sys_epoll_create 407
-#define __NR_sys_epoll_ctl    408
-#define __NR_sys_epoll_wait   409
+#define __NR_epoll_create 407
+#define __NR_epoll_ctl    408
+#define __NR_epoll_wait   409
 #elif defined (__i386__)
 #define __NR_epoll_create 254
 #define __NR_epoll_ctl    255