Just "#define O_CLOEXEC" is OK, because asm-generic/fcntl.h will check if it's already defined. Loads of "struct flock inside parameter list" warnings and "O_WRONLY undefined" errors. Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> --- include/asm-sparc/fcntl.h | 1 + 1 file changed, 1 insertion(+) --- a/include/asm-sparc/fcntl.h +++ b/include/asm-sparc/fcntl.h @@ -32,5 +32,6 @@ #define __ARCH_FLOCK_PAD short __unused; #define __ARCH_FLOCK64_PAD short __unused; +#include <asm-generic/fcntl.h> #endif - To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html