aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/posix/cuserid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/cuserid.c')
-rw-r--r--sysdeps/posix/cuserid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/posix/cuserid.c b/sysdeps/posix/cuserid.c
index 2fe535ea1d..140442fdee 100644
--- a/sysdeps/posix/cuserid.c
+++ b/sysdeps/posix/cuserid.c
@@ -16,9 +16,11 @@ License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
+#include <pwd.h>
#include <stdio.h>
#include <string.h>
-#include <pwd.h>
+#include <unistd.h>
+#include <sys/types.h>
/* Return the username of the caller.
If S is not NULL, it points to a buffer of at least L_cuserid bytes