summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/pwd_grp/pwd_grp.c3
-rw-r--r--libc/unistd/getopt.c3
-rw-r--r--libc/unistd/sysconf.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c
index 91c0d83f5..e56b545d6 100644
--- a/libc/pwd_grp/pwd_grp.c
+++ b/libc/pwd_grp/pwd_grp.c
@@ -41,7 +41,10 @@
#include <ctype.h>
#include <pwd.h>
#include <grp.h>
+#include <paths.h>
+#ifdef __HAS_SHADOW__
#include <shadow.h>
+#endif
#ifdef __UCLIBC_HAS_THREADS__
#include <pthread.h>
#endif
diff --git a/libc/unistd/getopt.c b/libc/unistd/getopt.c
index 504f3764c..0dc0e0509 100644
--- a/libc/unistd/getopt.c
+++ b/libc/unistd/getopt.c
@@ -26,10 +26,13 @@
* Modified once again for uClibc by Erik Andersen 8/7/02
*/
+#include <features.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#ifdef __UCLIBC_HAS_GETTEXT_AWARENESS__
#include <libintl.h>
+#endif
#ifdef __UCLIBC_MJN3_ONLY__
#warning TODO: Enable gettext awareness.
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!