ia64/xen-unstable

changeset 12908:ee4397571e44

[POWERPC][TOOLS] fix header so libaio builds

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Wed Aug 09 15:38:37 2006 -0400 (2006-08-09)
parents 0bdd578c417f
children 223470316756
files tools/libaio/src/syscall-ppc.h
line diff
     1.1 --- a/tools/libaio/src/syscall-ppc.h	Mon Sep 18 14:28:16 2006 -0500
     1.2 +++ b/tools/libaio/src/syscall-ppc.h	Wed Aug 09 15:38:37 2006 -0400
     1.3 @@ -1,3 +1,6 @@
     1.4 +#include <asm/unistd.h>
     1.5 +#include <errno.h>
     1.6 +
     1.7  #define __NR_io_setup		227
     1.8  #define __NR_io_destroy		228
     1.9  #define __NR_io_getevents	229
    1.10 @@ -9,7 +12,7 @@
    1.11   * "sc; bnslr" sequence) and CR (where only CR0.SO is clobbered to signal
    1.12   * an error return status).
    1.13   */
    1.14 -
    1.15 +#ifndef __syscall_nr
    1.16  #define __syscall_nr(nr, type, name, args...)				\
    1.17  	unsigned long __sc_ret, __sc_err;				\
    1.18  	{								\
    1.19 @@ -37,6 +40,7 @@
    1.20  	}								\
    1.21  	if (__sc_err & 0x10000000) return -((int)__sc_ret);		\
    1.22  	return (type) __sc_ret
    1.23 +#endif
    1.24  
    1.25  #define __sc_loadargs_0(name, dummy...)					\
    1.26  	__sc_0 = __NR_##name