aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/rsyslog/rsyslog/0001-Include-sys-time-h.patch
blob: ca88dd3f7e8ebd38ebab07a84c43fd0163a5ba5e (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
From 9739095de6ae5f844354756ae968f5f8864eb3e3 Mon Sep 17 00:00:00 2001
From: Ming Liu <peter.x.liu@external.atlascopco.com>
Date: Sun, 26 Feb 2017 14:10:21 +0100
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>

---
 tests/msleep.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/msleep.c b/tests/msleep.c
index 26a8206..ca818be 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
 
 int main(int argc, char *argv[])
 {