|
@@ -24,10 +24,12 @@ struct __kernel_sockaddr_storage {
|
|
#include <linux/types.h> /* pid_t */
|
|
#include <linux/types.h> /* pid_t */
|
|
#include <linux/compiler.h> /* __user */
|
|
#include <linux/compiler.h> /* __user */
|
|
|
|
|
|
-#ifdef CONFIG_PROC_FS
|
|
|
|
|
|
+#ifdef __KERNEL__
|
|
|
|
+# ifdef CONFIG_PROC_FS
|
|
struct seq_file;
|
|
struct seq_file;
|
|
extern void socket_seq_show(struct seq_file *seq);
|
|
extern void socket_seq_show(struct seq_file *seq);
|
|
-#endif
|
|
|
|
|
|
+# endif
|
|
|
|
+#endif /* __KERNEL__ */
|
|
|
|
|
|
typedef unsigned short sa_family_t;
|
|
typedef unsigned short sa_family_t;
|
|
|
|
|