summaryrefslogtreecommitdiff
path: root/libc/unistd/sysconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/unistd/sysconf.c')
-rw-r--r--libc/unistd/sysconf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index 702046874..92fa42765 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -16,6 +16,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#define _XOPEN_SOURCE
#include <errno.h>
#include <limits.h>
#include <grp.h>
@@ -29,6 +30,9 @@
#include <sys/types.h>
#include <regex.h>
+extern int getpagesize (void);
+extern int getdtablesize (void);
+
/***********************************************************************/
/*
* Manuel Novoa III Jan 2001
@@ -61,7 +65,7 @@
#endif /* _UCLIBC_GENERATE_SYSCONF_ARCH */
/* Get the value of the system variable NAME. */
-long int sysconf(int name)
+long int __sysconf(int name)
{
switch (name)
{
@@ -889,6 +893,7 @@ long int sysconf(int name)
#endif
}
}
+weak_alias(__sysconf, sysconf);
#endif /* _UCLIBC_GENERATE_SYSCONF_MAIN */
/***********************************************************************/