diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/sysconf.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/sysconf.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/sysconf.c b/sysdeps/unix/sysv/linux/sysconf.c index 61e9865dce..6fae5590f5 100644 --- a/sysdeps/unix/sysv/linux/sysconf.c +++ b/sysdeps/unix/sysv/linux/sysconf.c @@ -17,6 +17,7 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include <errno.h> #include <fcntl.h> #include <stdlib.h> #include <sysdep.h> @@ -26,10 +27,6 @@ static long int posix_sysconf (int name); -/* Define this first, so it can be inlined. */ -#define __sysconf static posix_sysconf -#include <sysdeps/posix/sysconf.c> - /* Get the value of the system variable NAME. */ long int @@ -83,3 +80,8 @@ __sysconf (int name) } return posix_sysconf (name); } + +/* Now the POSIX version. */ +#undef __sysconf +#define __sysconf static posix_sysconf +#include <sysdeps/posix/sysconf.c> |