diff options
author | Petr Vorel <pvorel@suse.cz> | 2019-02-25 23:18:02 +0100 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2019-02-25 23:51:27 +0100 |
commit | a4ed9600c78931b8cd8f63fedc9e6fd1aea3d55e (patch) | |
tree | 1757c0ead3beb83eb36f77ee8397093e4f60e738 /include | |
parent | 46e1eda55f188810e6bf3a939b92d604321807ae (diff) |
syscalls/syncfs: Fix compilation on older distros
gcc -g -O2 -g -O2 -fno-strict-aliasing -pipe -Wall -W -Wold-style-definition -D_FORTIFY_SOURCE=2 -I../../../../include -I../../../../include -I../../../../include/old/ -L../../../../lib syncfs01.c -lltp -o syncfs01
In file included from syncfs01.c:19:
../../../../include/lapi/syncfs.h: In function ‘syncfs’:
../../../../include/lapi/syncfs.h:17: warning: implicit declaration of function ‘syscall’
../../../../include/lapi/syncfs.h:17: warning: implicit declaration of function ‘tst_brk’
../../../../include/lapi/syncfs.h:17: error: ‘TCONF’ undeclared (first use in this function)
../../../../include/lapi/syncfs.h:17: error: (Each undeclared identifier is reported only once
../../../../include/lapi/syncfs.h:17: error: for each function it appears in.)
In file included from ../../../../include/tst_test.h:25,
from syncfs01.c:20:
/usr/include/unistd.h: At top level:
/usr/include/unistd.h:1068: error: conflicting types for ‘syscall’
../../../../include/lapi/syncfs.h:17: note: previous implicit declaration of ‘syscall’ was here
make: *** [syncfs01] Error 1
Fixes: b88b3785d ("syscalls: add syncfs() sync device test-case")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/lapi/syncfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lapi/syncfs.h b/include/lapi/syncfs.h index 1341c6b90..e5d29fa96 100644 --- a/include/lapi/syncfs.h +++ b/include/lapi/syncfs.h @@ -7,8 +7,8 @@ #ifndef SYNCFS_H #define SYNCFS_H -#include <sys/types.h> #include "config.h" +#include <sys/types.h> #include "lapi/syscalls.h" #if !defined(HAVE_SYNCFS) |