compat: include linux/unistd.h within linux/compat.h
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 20 Mar 2014 14:30:14 +0000 (15:30 +0100)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 20 Mar 2014 15:42:14 +0000 (16:42 +0100)
commitf5b972e9fbd2e99a2abc3221783d089799b69394
tree7967dd66441bf171e9e297f6b3c5dd1f6e53185d
parent5b098c204827ed21961988b4206b411f90cc89c8
compat: include linux/unistd.h within linux/compat.h

linux/compat.h does not include linux/unistd.h but the compat.h header
file contains various conditional

 #ifdef __ARCH_WANT_COMPAT_...
 asmlinkage long compat...()
 #endif

compat system call function declarations.
If linux/unistd.h isn't included it depends on previous includes if those
__ARCH_WANT_COMPAT_... defines are defined or not. So add an additional
linux/unistd.h include.

Should fix this compile error on tile:

include/uapi/asm-generic/unistd.h:195:1: error: 'compat_sys_getdents64' undeclared
make[3]: *** [arch/tile/kernel/compat.o] Error 1

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
include/linux/compat.h