--- linux-2.4.21-7/include/linux/personality.h.orig 2003-07-21 13:06:24.000000000 +0200 +++ linux-2.4.21-7/include/linux/personality.h 2003-07-21 13:07:53.000000000 +0200 @@ -1,6 +1,8 @@ #ifndef _LINUX_PERSONALITY_H #define _LINUX_PERSONALITY_H +#ifdef __KERNEL__ + /* * Handling of different ABIs (personalities). */ @@ -22,6 +24,7 @@ extern unsigned long abi_defhandler_libcso; extern int abi_fake_utsname; +#endif /* __KERNEL__ */ /* * Flags for bug emulation. @@ -69,6 +72,7 @@ PER_MASK = 0x00ff, }; +#ifdef __KERNEL__ /* * Description of an execution domain. @@ -127,4 +131,6 @@ __MOD_DEC_USE_COUNT(ep->module); \ } while (0) +#endif /* __KERNEL__ */ + #endif /* _LINUX_PERSONALITY_H */