Fixed some issues found by winapi_check.
diff --git a/server/context_sparc.c b/server/context_sparc.c
index 0a63c12..bd30922 100644
--- a/server/context_sparc.c
+++ b/server/context_sparc.c
@@ -12,11 +12,15 @@
#include <errno.h>
#include <sys/types.h>
#ifdef HAVE_SYS_REG_H
-#include <sys/reg.h>
+# include <sys/reg.h>
#endif
#include <unistd.h>
-#include <sys/ptrace.h>
-#include <sys/user.h>
+#ifdef HAVE_SYS_PTRACE_H
+# include <sys/ptrace.h>
+#endif
+#ifdef HAVE_SYS_USER_H
+# include <sys/user.h>
+#endif
#include "winbase.h"