Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/gen PR/51811: Ngie Cooper: Fix include file p...



details:   https://anonhg.NetBSD.org/src/rev/2bfdc3e65b60
branches:  trunk
changeset: 350336:2bfdc3e65b60
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Jan 10 15:31:11 2017 +0000

description:
PR/51811: Ngie Cooper: Fix include file portability.

diffstat:

 tests/lib/libc/gen/t_sleep.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r b2697492ccc8 -r 2bfdc3e65b60 tests/lib/libc/gen/t_sleep.c
--- a/tests/lib/libc/gen/t_sleep.c      Tue Jan 10 15:20:44 2017 +0000
+++ b/tests/lib/libc/gen/t_sleep.c      Tue Jan 10 15:31:11 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sleep.c,v 1.9 2016/08/11 21:34:11 kre Exp $ */
+/* $NetBSD: t_sleep.c,v 1.10 2017/01/10 15:31:11 christos Exp $ */
 
 /*-
  * Copyright (c) 2006 Frank Kardel
@@ -26,19 +26,22 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include <sys/cdefs.h>
+#include <sys/event.h>
+#include <sys/signal.h>
+#include <sys/time.h>          /* for TIMESPEC_TO_TIMEVAL on FreeBSD */
+
 #include <atf-c.h>
 #include <errno.h>
 #include <poll.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <inttypes.h>
 #include <string.h>
+#include <inttypes.h>
 #include <time.h>
 #include <unistd.h>
 
-#include <sys/cdefs.h>
-#include <sys/event.h>
-#include <sys/signal.h>
-
 #include "isqemu.h"
 
 #define BILLION                1000000000LL    /* nano-seconds per second */



Home | Main Index | Thread Index | Old Index