summaryrefslogtreecommitdiffstats
path: root/package/vnstat/0001-add-missing-fcntl.h-include-needed-by-open-closes-21.patch
blob: 54895801e4901a834c9ef052b7065d9909eba9eb (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
From a222434e096ce42c7937839f9666691f2b8a612f Mon Sep 17 00:00:00 2001
From: Teemu Toivola <git@humdi.net>
Date: Sat, 27 Jun 2015 18:29:22 +0300
Subject: [PATCH] add missing fcntl.h include needed by open(), closes #21

[Backport from upstream commit 964d7cd62b8626d51bf7ce06564aa9bd1d2b4d4c.
Fixes undeclared symbol issues when building with musl.]

Signed-off-by: Rodrigo Rebello <rprebello@gmail.com>
---
 src/common.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common.h b/src/common.h
index 7616e55..eb0b61f 100644
--- a/src/common.h
+++ b/src/common.h
@@ -22,6 +22,7 @@
 #include <pwd.h>
 #include <grp.h>
 #include <libgen.h>
+#include <fcntl.h>
 
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
 #include <sys/param.h>
-- 
2.1.4

OpenPOWER on IntegriCloud