Whamcloud - gitweb
Use sys/syscall.h instead of syscall.h
authorTheodore Ts'o <tytso@mit.edu>
Thu, 10 Jul 2014 19:54:42 +0000 (15:54 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 10 Jul 2014 19:54:42 +0000 (15:54 -0400)
Most systems have a backwards compatibility symlink in
/usr/include/syscall.h to /usr/include/sys/syscall.h, but
sys/syscall.h is the documented location of the header file.  Fix two
locations where we were using <syscall.h> instead of <sys/syscall.h>.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/blkid/llseek.c
lib/ext2fs/llseek.c

index 658acc9..1cee34b 100644 (file)
@@ -36,7 +36,7 @@
 #define my_llseek lseek64
 
 #elif defined(HAVE_LLSEEK)
-#include <syscall.h>
+#include <sys/syscall.h>
 
 #ifndef HAVE_LLSEEK_PROTOTYPE
 extern long long llseek(int fd, long long offset, int origin);
index c3a98a2..2730f20 100644 (file)
@@ -37,7 +37,7 @@
 
 #else
 #if defined(HAVE_LLSEEK)
-#include <syscall.h>
+#include <sys/syscall.h>
 
 #ifndef HAVE_LLSEEK_PROTOTYPE
 extern long long llseek (int fd, long long offset, int origin);