Commit 606c88a3 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Use the __NR_ names for Linux system calls.

parent 99c1b557
......@@ -66,12 +66,12 @@ static int wake_op = 129; /*FUTEX_WAKE|FUTEX_PRIVATE_FLAG*/
static inline int futex_wait( int *addr, int val, struct timespec *timeout )
{
return syscall( SYS_futex, addr, wait_op, val, timeout, 0, 0 );
return syscall( __NR_futex, addr, wait_op, val, timeout, 0, 0 );
}
static inline int futex_wake( int *addr, int val )
{
return syscall( SYS_futex, addr, wake_op, val, NULL, 0, 0 );
return syscall( __NR_futex, addr, wake_op, val, NULL, 0, 0 );
}
static inline int use_futexes(void)
......
......@@ -109,7 +109,7 @@ typedef struct
# define O_DIRECTORY 0200000 /* must be directory */
#endif
#ifdef SYS_getdents64
#ifdef __NR_getdents64
typedef struct
{
ULONG64 d_ino;
......@@ -121,7 +121,7 @@ typedef struct
static inline int getdents64( int fd, char *de, unsigned int size )
{
return syscall( SYS_getdents64, fd, de, size );
return syscall( __NR_getdents64, fd, de, size );
}
#define USE_GETDENTS
#endif
......
......@@ -962,7 +962,7 @@ static int get_unix_tid(void)
#ifdef HAVE_PTHREAD_GETTHREADID_NP
ret = pthread_getthreadid_np();
#elif defined(linux)
ret = syscall( SYS_gettid );
ret = syscall( __NR_gettid );
#elif defined(__sun)
ret = pthread_self();
#elif defined(__APPLE__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment