summaryrefslogtreecommitdiff
path: root/package/rsyslog/0001-musl-fcntl-h.patch
blob: 5c2daee6954c7168f9643a1dc9578da8926b71de (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
From 835571774dc519dd2cff7ab1020cf298cc953a8f Mon Sep 17 00:00:00 2001
From: Thordur Bjornsson <thorduri@secnorth.net>
Date: Tue, 7 Jul 2015 12:34:08 +0200
Subject: [PATCH] omfile: unconditionally include fcntl.h.

required for open() flags

Signed-off-by: Thordur Bjornsson <thorduri@secnorth.net>
[Bernd: downloaded from upstream commit:
 https://github.com/rsyslog/rsyslog/commit/835571774dc519dd2cff7ab1020cf298cc953a8f
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 tools/omfile.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/tools/omfile.c b/tools/omfile.c
index 482e723..4444b97 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -48,9 +48,7 @@
 #include <libgen.h>
 #include <unistd.h>
 #include <sys/file.h>
-#ifdef OS_SOLARIS
-#	include <fcntl.h>
-#endif
+#include <fcntl.h>
 #ifdef HAVE_ATOMIC_BUILTINS
 #	include <pthread.h>
 #endif