Include sys/types.h before sys/stat.h.
authorJim Meyering <jim@meyering.net>
Wed, 5 Apr 2000 15:00:11 +0000 (15:00 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 5 Apr 2000 15:00:11 +0000 (15:00 +0000)
Required for ultrix4.3.

lib/readutmp.c

index e14408add8a75738c8e2bd8acd11b583d2a9c2cc..29b24a550796005a8b058c2c06933a4d27bd04b2 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <stdio.h>
 
+#include <sys/types.h>
 #include <sys/stat.h>
 #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
 # include <string.h>
@@ -129,4 +130,4 @@ read_utmp (const char *filename, int *n_entries, STRUCT_UTMP **utmp_buf)
   return 0;
 }
 
-#endif /* HAVE_UTMPNAME */
+#endif