[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>
This commit is contained in:
Jimi Xenidis committed 2006-08-09 15:38:37 -04:00
1 parent ac9ed2ddf6
commit d3be8a6ca1
1 file changed
+5 -1
Regular → Executable
+5 -1
View File
@@ -1,3 +1,6 @@
#include <asm/unistd.h>
#include <errno.h>
#define __NR_io_setup 227
#define __NR_io_destroy 228
#define __NR_io_getevents 229
@@ -9,7 +12,7 @@
* "sc; bnslr" sequence) and CR (where only CR0.SO is clobbered to signal
* an error return status).
*/
#ifndef __syscall_nr
#define __syscall_nr(nr, type, name, args...) \
unsigned long __sc_ret, __sc_err; \
{ \
@@ -37,6 +40,7 @@
} \
if (__sc_err & 0x10000000) return -((int)__sc_ret); \
return (type) __sc_ret
#endif
#define __sc_loadargs_0(name, dummy...) \
__sc_0 = __NR_##name
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.