Pull in <sys/time.h> for struct timeval
authorguenther <guenther@openbsd.org>
Sat, 27 Aug 2016 04:34:28 +0000 (04:34 +0000)
committerguenther <guenther@openbsd.org>
Sat, 27 Aug 2016 04:34:28 +0000 (04:34 +0000)
<sys/*.h> includes go before <*.h> includes

ok deraadt@

regress/sys/kern/ptmget/ptmget.c

index 24fb09b..5c1b071 100644 (file)
@@ -1,9 +1,15 @@
-/*     $OpenBSD: ptmget.c,v 1.2 2004/12/22 00:54:39 david Exp $ */
+/*     $OpenBSD: ptmget.c,v 1.3 2016/08/27 04:34:28 guenther Exp $ */
 /*
  *     Written by Bob Beck <beck@openbsd.org> 2004 Public Domain.
  *     Basic test to ensure /dev/ptm works, and what it returns
  *     can be used via tty(4);
  */
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <sys/time.h>
+#include <sys/tty.h>
+#include <sys/stat.h>
+
 #include <err.h>
 #include <fcntl.h>
 #include <grp.h>
 #include <string.h>
 #include <unistd.h>
 
-#include <sys/ioctl.h>
-#include <sys/tty.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
 int
 main(int argc, char *argv[])
 {