summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-11-17 08:31:01 +0000
committerJim Meyering <jim@meyering.net>2000-11-17 08:31:01 +0000
commit7daa83a149b8bb7fe1a50187f485ee48cc901153 (patch)
tree19be42c610b9e919b90826822a0233479ec4d24c
parentb73eb2433da3bd3e4397ff638789e43b5fd80309 (diff)
downloadcoreutils-7daa83a149b8bb7fe1a50187f485ee48cc901153.tar.xz
Explicitly include sys/types.h before including system.h.
-rw-r--r--src/pinky.c2
-rw-r--r--src/uptime.c4
-rw-r--r--src/users.c4
-rw-r--r--src/who.c4
4 files changed, 11 insertions, 3 deletions
diff --git a/src/pinky.c b/src/pinky.c
index ae36e0ff9..e7899f552 100644
--- a/src/pinky.c
+++ b/src/pinky.c
@@ -22,7 +22,9 @@
#include <pwd.h>
#include <stdio.h>
+#include <sys/types.h>
#include "system.h"
+
#include "error.h"
#include "readutmp.h"
#include "closeout.h"
diff --git a/src/uptime.c b/src/uptime.c
index eec73771a..779dff73b 100644
--- a/src/uptime.c
+++ b/src/uptime.c
@@ -21,10 +21,12 @@
#include <getopt.h>
#include <stdio.h>
+#include <sys/types.h>
+#include "system.h"
+
#include "error.h"
#include "long-options.h"
#include "readutmp.h"
-#include "system.h"
#include "closeout.h"
/* The official name of this program (e.g., no `g' prefix). */
diff --git a/src/users.c b/src/users.c
index 9a6d277d0..2c1b51995 100644
--- a/src/users.c
+++ b/src/users.c
@@ -21,10 +21,12 @@
#include <getopt.h>
#include <stdio.h>
+#include <sys/types.h>
+#include "system.h"
+
#include "error.h"
#include "long-options.h"
#include "readutmp.h"
-#include "system.h"
#include "closeout.h"
/* The official name of this program (e.g., no `g' prefix). */
diff --git a/src/who.c b/src/who.c
index a937365e1..06b01a7df 100644
--- a/src/who.c
+++ b/src/who.c
@@ -28,9 +28,11 @@
#include <getopt.h>
#include <stdio.h>
+#include <sys/types.h>
+#include "system.h"
+
#include "error.h"
#include "readutmp.h"
-#include "system.h"
#include "closeout.h"
/* The official name of this program (e.g., no `g' prefix). */