From 7fdd23c49e2e1dc5d9cee2be672a6508c48fa545 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 17 Mar 2014 16:33:12 -0700 Subject: [PATCH] clamd: Use fanotify syscall numbers from unistd.h. unistd.h provides the per-platform syscall numbers, so there's no need to define them ourselves. On top of that, the #error unnecessarily causes the build to fail on other platforms, even though the syscall numbers were available. --- clamd/fan-syscalllib.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/clamd/fan-syscalllib.h b/clamd/fan-syscalllib.h index 288cd99..c8a7a78 100644 --- a/clamd/fan-syscalllib.h +++ b/clamd/fan-syscalllib.h @@ -4,13 +4,7 @@ #include #include -#if defined(__x86_64__) -# define __NR_fanotify_init 300 -# define __NR_fanotify_mark 301 -#elif defined(__i386__) -# define __NR_fanotify_init 338 -# define __NR_fanotify_mark 339 -#else +#if !defined __NR_fanotify_init || !defined __NR_fanotify_mark # error "System call numbers not defined for this architecture" #endif -- 1.8.3.2