summaryrefslogtreecommitdiff
path: root/libc/unistd/sysconf.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-09-21 23:33:29 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-09-21 23:33:29 +0000
commitacbd270e3706b8ce260cef6056454ed1f75fd4b1 (patch)
treed2298d38a2ade87aad66c6c1bd14e5fdb724b951 /libc/unistd/sysconf.c
parent80912f34883fb01c3a75db92821c9dc3d86ad322 (diff)
include headers only if the related option is enabled
Diffstat (limited to 'libc/unistd/sysconf.c')
-rw-r--r--libc/unistd/sysconf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index f5b49a10f..902697b45 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -29,7 +29,9 @@
#include <unistd.h>
#include <sys/sysinfo.h>
#include <sys/types.h>
+#ifdef __UCLIBC_HAS_REGEX__
#include <regex.h>
+#endif
#ifndef __UCLIBC_CLK_TCK_CONST
#error __UCLIBC_CLK_TCK_CONST not defined!