From df31d32b411022d130b078de177cfa40b7bf6cde Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sun, 22 Jan 2006 19:35:08 +0000 Subject: Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA is a useless attempt --- libc/sysdeps/linux/common/ulimit.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'libc/sysdeps/linux/common/ulimit.c') diff --git a/libc/sysdeps/linux/common/ulimit.c b/libc/sysdeps/linux/common/ulimit.c index 523beae47..75d7a8237 100644 --- a/libc/sysdeps/linux/common/ulimit.c +++ b/libc/sysdeps/linux/common/ulimit.c @@ -5,21 +5,10 @@ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#define _GNU_SOURCE -#define _LARGEFILE64_SOURCE -#include -#undef __OPTIMIZE__ -/* We absolutely do _NOT_ want interfaces silently - * * * renamed under us or very bad things will happen... */ -#ifdef __USE_FILE_OFFSET64 -# undef __USE_FILE_OFFSET64 -#endif +#include "syscalls.h" #ifdef __NR_ulimit -#include -#include - _syscall2(long, ulimit, int, cmd, int, arg); #else @@ -27,7 +16,6 @@ _syscall2(long, ulimit, int, cmd, int, arg); #include #include #include -#include #include libc_hidden_proto(sysconf) @@ -68,4 +56,3 @@ long int ulimit(int cmd, ...) return result; } #endif - -- cgit v1.2.3