Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 7baf35b88d742032a2dc456c396843e17e866f8e Mon Sep 17 00:00:00 2001 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 2 | From: Ming Liu <peter.x.liu@external.atlascopco.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 3 | Date: Wed, 27 Jun 2018 14:04:57 +0800 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 4 | Subject: [PATCH] Include sys/time.h |
| 5 | |
| 6 | struct timeval is defined in sys/time.h with a musl libc. |
| 7 | |
| 8 | Upstream-Status: Inappropriate [musl libc specific] |
| 9 | |
| 10 | Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 11 | Signed-off-by: Changqing Li <changqing.li@windriver.com> |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | --- |
| 13 | tests/msleep.c | 4 ---- |
| 14 | 1 file changed, 4 deletions(-) |
| 15 | |
| 16 | diff --git a/tests/msleep.c b/tests/msleep.c |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 17 | index 98dbece..96f6950 100644 |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 18 | --- 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 Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 29 | #if defined(HAVE_SYS_SELECT_H) |
| 30 | #include <sys/select.h> |
| 31 | #endif |
| 32 | 2.7.4 |