diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-06 18:32:46 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-06 18:32:46 +0400 |
commit | 944dd2a7eab62d2b23c31e26a33d4ad79c11381b (patch) | |
tree | 9c057e40d8e6ac58a5deca6ac4d8cdddde08b858 /src/aio_event.c | |
parent | 448ba92d15341362bdf4701e9b07f1503458d28f (diff) | |
download | rspamd-944dd2a7eab62d2b23c31e26a33d4ad79c11381b.tar.gz rspamd-944dd2a7eab62d2b23c31e26a33d4ad79c11381b.zip |
Fix aio syscall numbers for x86_64 platform.
Diffstat (limited to 'src/aio_event.c')
-rw-r--r-- | src/aio_event.c | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/aio_event.c b/src/aio_event.c index 9bd952e1f..c171fece5 100644 --- a/src/aio_event.c +++ b/src/aio_event.c @@ -26,11 +26,27 @@ #include "main.h" /* Linux syscall numbers */ -#define SYS_io_setup 245 -#define SYS_io_destroy 246 -#define SYS_io_getevents 247 -#define SYS_io_submit 248 -#define SYS_io_cancel 249 +#if defined(__i386__) +# define SYS_io_setup 245 +# define SYS_io_destroy 246 +# define SYS_io_getevents 247 +# define SYS_io_submit 248 +# define SYS_io_cancel 249 +#elif defined(__x86_64__) +# define SYS_io_setup 206 +# define SYS_io_destroy 207 +# define SYS_io_getevents 208 +# define SYS_io_submit 209 +# define SYS_io_cancel 210 +#else +# warning "aio is not supported on this platform, please contact author for details" +# define SYS_io_setup 0 +# define SYS_io_destroy 0 +# define SYS_io_getevents 0 +# define SYS_io_submit 0 +# define SYS_io_cancel 0 +#endif + #define SYS_eventfd 323 #define MAX_AIO_EV 32768 |