Add patch to fix compilation failure on kfreebsd-*.
authorgregor herrmann <gregoa@debian.org>
Sun, 5 Oct 2014 16:13:59 +0000 (18:13 +0200)
committergregor herrmann <gregoa@debian.org>
Sun, 5 Oct 2014 16:13:59 +0000 (18:13 +0200)
Closes: #764117
debian/patches/kfreebsd.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/kfreebsd.patch b/debian/patches/kfreebsd.patch
new file mode 100644 (file)
index 0000000..63f72cf
--- /dev/null
@@ -0,0 +1,19 @@
+Description: fix compilation error on kFreeBSD
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/764117
+Forwarded: not-yet
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2014-10-05
+
+--- a/src/osflags
++++ b/src/osflags
+@@ -38,6 +38,9 @@
+                       [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD";
+                       echo $FLAGS;
+               ;;
++              GNU/kFreeBSD)
++                      echo '-D_GNU_SOURCE'
++              ;;
+       esac
+ ;;
+ *)
index 1294a4f0c6331502d54c171d7201d1623b3529cd..cf7a70225abf1502a0d802fff13f8a4e3a1aaccd 100644 (file)
@@ -1,3 +1,4 @@
 cflags.patch
 verbose-build.patch
 0001-osflags-use-pkg-config-for-systemd-support.patch
+kfreebsd.patch