blob: 6ce8b7a9c80f40b689e75474bd1996a2a4646b72 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 7baf35b88d742032a2dc456c396843e17e866f8e Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Ming Liu <peter.x.liu@external.atlascopco.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08003Date: Wed, 27 Jun 2018 14:04:57 +0800
Brad Bishop6e60e8b2018-02-01 10:27:11 -05004Subject: [PATCH] Include sys/time.h
5
6struct timeval is defined in sys/time.h with a musl libc.
7
8Upstream-Status: Inappropriate [musl libc specific]
9
10Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011Signed-off-by: Changqing Li <changqing.li@windriver.com>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012---
13 tests/msleep.c | 4 ----
14 1 file changed, 4 deletions(-)
15
16diff --git a/tests/msleep.c b/tests/msleep.c
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017index 98dbece..96f6950 100644
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018--- a/tests/msleep.c
19+++ b/tests/msleep.c
20@@ -26,11 +26,7 @@
21 #include "config.h"
22 #include <stdio.h>
23 #include <stdlib.h>
24-#if defined(__FreeBSD__)
25 #include <sys/time.h>
26-#else
27-#include <time.h>
28-#endif
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080029 #if defined(HAVE_SYS_SELECT_H)
30 #include <sys/select.h>
31 #endif
322.7.4