summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch
blob: 6ce8b7a9c80f40b689e75474bd1996a2a4646b72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 7baf35b88d742032a2dc456c396843e17e866f8e Mon Sep 17 00:00:00 2001
From: Ming Liu <peter.x.liu@external.atlascopco.com>
Date: Wed, 27 Jun 2018 14:04:57 +0800
Subject: [PATCH] Include sys/time.h

struct timeval is defined in sys/time.h with a musl libc.

Upstream-Status: Inappropriate [musl libc specific]

Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com>
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 tests/msleep.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/msleep.c b/tests/msleep.c
index 98dbece..96f6950 100644
--- a/tests/msleep.c
+++ b/tests/msleep.c
@@ -26,11 +26,7 @@
 #include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
-#if defined(__FreeBSD__)
 #include <sys/time.h>
-#else
-#include <time.h>
-#endif
 #if defined(HAVE_SYS_SELECT_H)
 #include <sys/select.h>
 #endif
2.7.4
OpenPOWER on IntegriCloud