summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Weller <lhw@ring0.de>2018-05-15 12:58:58 +0000
committerLennart Weller <lhw@ring0.de>2018-05-15 12:58:58 +0000
commitfcfc528c96e2e8bad441232556e22fd3ebe3338d (patch)
treea5e63d967ded2049e7b9cddcb8c0bfc5a3980d9a
parentRelease v. 1.10.0+dfsg-1 to Unstable (diff)
downloadnetdata-fcfc528c96e2e8bad441232556e22fd3ebe3338d.tar.xz
netdata-fcfc528c96e2e8bad441232556e22fd3ebe3338d.zip
add support for compilation on kfreebsd/hurd
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/0006-compile-on-kfreebsd-hurd.patch25
-rw-r--r--debian/patches/series1
3 files changed, 33 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 4d4c1ed91..f4db3c748 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+netdata (1.10.0+dfsg-2) UNRELEASED; urgency=medium
+
+ [ Lennart Weller ]
+ * Add support for kfreebsd/hurd
+
+ -- Lennart Weller <lhw@ring0.de> Tue, 15 May 2018 14:58:06 +0200
+
netdata (1.10.0+dfsg-1) unstable; urgency=medium
[ Federico Ceratto ]
diff --git a/debian/patches/0006-compile-on-kfreebsd-hurd.patch b/debian/patches/0006-compile-on-kfreebsd-hurd.patch
new file mode 100644
index 000000000..f2ba3f2a7
--- /dev/null
+++ b/debian/patches/0006-compile-on-kfreebsd-hurd.patch
@@ -0,0 +1,25 @@
+From: Lennart Weller <lhw@ring0.de>
+Date: Tue, 15 May 2018 14:57:35 +0200
+Subject: compile on kfreebsd/hurd
+
+---
+ src/common.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/common.c b/src/common.c
+index 94fd5e4..daa315b 100644
+--- a/src/common.c
++++ b/src/common.c
+@@ -3,10 +3,10 @@
+ #ifdef __APPLE__
+ #define INHERIT_NONE 0
+ #endif /* __APPLE__ */
+-#if defined(__FreeBSD__) || defined(__APPLE__)
++#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
+ # define O_NOATIME 0
+ # define MADV_DONTFORK INHERIT_NONE
+-#endif /* __FreeBSD__ || __APPLE__*/
++#endif /* __FreeBSD__ || __APPLE__ || __FreeBSD_kernel__ || __GNU__ */
+
+ char *netdata_configured_hostname = NULL;
+ char *netdata_configured_config_dir = NULL;
diff --git a/debian/patches/series b/debian/patches/series
index 7c4a6f2ba..e3e8226e3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
0003-hide-update-button.patch
0004-Debianize-path-to-exim4-binary.patch
0005-remove-infographic-for-privacy-breach-reasons.patch
+0006-compile-on-kfreebsd-hurd.patch