diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-27 04:34:29 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-08-27 04:34:29 +0000 |
commit | 41ed3d27336a5fea9b176655c8ca64ce3c297d48 (patch) | |
tree | a99b7344baebcb4398a7e919fc89481ba5e3a708 | |
parent | c82d146c030462fa3e4d75e4d928ebf46e47a8dc (diff) |
Pull in <sys/time.h> for struct timeval
<sys/*.h> includes go before <*.h> includes
ok deraadt@
-rw-r--r-- | regress/sys/kern/ptmget/ptmget.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/regress/sys/kern/ptmget/ptmget.c b/regress/sys/kern/ptmget/ptmget.c index 24fb09b730f..5c1b0713bd1 100644 --- a/regress/sys/kern/ptmget/ptmget.c +++ b/regress/sys/kern/ptmget/ptmget.c @@ -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> @@ -11,11 +17,6 @@ #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[]) { |