From: Nicholas Nethercote Date: Fri, 12 Nov 2004 17:12:04 +0000 (+0000) Subject: Use our own unistd.h, because the system one might be missing some of the X-Git-Tag: svn/VALGRIND_3_0_0~1342 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c8d91069ed44ad7661c00d1ce3f5bbb4c26ba79c;p=thirdparty%2Fvalgrind.git Use our own unistd.h, because the system one might be missing some of the constants. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2970 --- diff --git a/memcheck/tests/scalar.h b/memcheck/tests/scalar.h index d1f3d34bcb..4b0e23a3d5 100644 --- a/memcheck/tests/scalar.h +++ b/memcheck/tests/scalar.h @@ -1,13 +1,19 @@ +// XXX: x86-specific, so these should be in x86/, or something +#include "../../coregrind/x86-linux/vki_unistd.h" + #include #include #include #include -#include #include #include #include #include +// Since we use vki_unistd.h, we can't include . So we have to +// declare this ourselves. +extern long int syscall (long int __sysno, ...) __THROW; + // Thorough syscall scalar arg checking. Also serves as thorough checking // for (very) basic syscall use. Generally not trying to do anything // meaningful with the syscalls.