VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / include / asm-sparc64 / siginfo.h
index 7e5459f..fde8521 100644 (file)
 
 #ifdef __KERNEL__
 
+#include <linux/config.h>
 #include <linux/compat.h>
 
+#ifdef CONFIG_COMPAT
+
 typedef union sigval32 {
        int sival_int;
        u32 sival_ptr;
@@ -72,6 +75,7 @@ typedef struct siginfo32 {
                } _sigpoll;
        } _sifields;
 } siginfo_t32;
+#endif /* CONFIG_COMPAT */
 
 #endif /* __KERNEL__ */
 
@@ -85,6 +89,8 @@ typedef struct siginfo32 {
 
 #ifdef __KERNEL__
 
+#ifdef CONFIG_COMPAT
+
 typedef struct sigevent32 {
        sigval_t32 sigev_value;
        int sigev_signo;
@@ -101,6 +107,8 @@ typedef struct sigevent32 {
 
 extern int copy_siginfo_to_user32(siginfo_t32 __user *to, siginfo_t *from);
 
+#endif /* CONFIG_COMPAT */
+
 #endif /* __KERNEL__ */
 
 #endif