server: Fix context_powerpc.c compilation.
Pierre d'Herbemont
pdherbemont at free.fr
Fri Jul 7 05:42:53 CDT 2006
Alexandre,
This patch fixes this error on PowerPC:
gcc -c -I. -I. -I../include -I../include -D__WINESRC__ -Wall -pipe -
fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-
arith -g -O2 -ffixed-r13 -D__powerpc__ -o context_powerpc.o
context_powerpc.c
context_powerpc.c:208: error: parse error before '*' token
context_powerpc.c: In function 'copy_context':
context_powerpc.c:210: error: 'flags' undeclared (first use in this
function)
context_powerpc.c:210: error: (Each undeclared identifier is reported
only once
context_powerpc.c:210: error: for each function it appears in.)
context_powerpc.c:210: error: 'CONTEXT_CONTROL' undeclared (first use
in this function)
context_powerpc.c:212: error: 'to' undeclared (first use in this
function)
context_powerpc.c:212: error: 'from' undeclared (first use in this
function)
context_powerpc.c:217: error: 'CONTEXT_INTEGER' undeclared (first use
in this function)
context_powerpc.c:228: error: 'CONTEXT_FLOATING_POINT' undeclared
(first use in this function)
context_powerpc.c: At top level:
context_powerpc.c:268: warning: type defaults to 'int' in declaration
of 'CONTEXT'
context_powerpc.c:268: error: parse error before '*' token
context_powerpc.c: In function 'get_context_ip':
context_powerpc.c:270: error: 'context' undeclared (first use in this
function)
make[1]: *** [context_powerpc.o] Error 1
make: *** [server] Error 2
Thanks,
Pierre.
ChangeLog:
Fix context_powerpc.c compilation.
-------------- next part --------------
diff --git a/server/context_powerpc.c b/server/context_powerpc.c
index e7c4455..5ce6364 100644
--- a/server/context_powerpc.c
+++ b/server/context_powerpc.c
@@ -34,6 +34,8 @@ #ifdef HAVE_SYS_PTRACE_H
# include <sys/ptrace.h>
#endif
+#include "windef.h"
+
#if 0 /* no longer used */
#ifndef PTRACE_PEEKUSER
@@ -48,8 +50,6 @@ # define PTRACE_POKEUSER PT_WRITE_D
# endif
#endif /* PTRACE_POKEUSER */
-#include "windef.h"
-
#include "file.h"
#include "thread.h"
#include "request.h"
More information about the wine-patches
mailing list