summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-01-03 22:59:56 -0600
committerPatrick Mochel <mochel@osdl.org>2003-01-03 22:59:56 -0600
commit509b39b15356d2cebf7ed9e709561eb7c5a59759 (patch)
treeea69e4df9e24d6ca2184304f5ec710888c834082 /include/linux
parent6223578142a8216a64063d22903ae215d885fb32 (diff)
kobject.h - add check that we're being included by other kernel entities.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 821d17e15a01..8a44ef867b35 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -3,7 +3,7 @@
*
*/
-#ifndef _KOBJECT_H_
+#if defined(__KERNEL__) && !defined(_KOBJECT_H_)
#define _KOBJECT_H_
#include <linux/types.h>