Update kfreebsd.patch and rename to kfreebsd-hurd.patch.
authorgregor herrmann <gregoa@debian.org>
Mon, 6 Oct 2014 14:45:54 +0000 (16:45 +0200)
committergregor herrmann <gregoa@debian.org>
Mon, 6 Oct 2014 14:45:54 +0000 (16:45 +0200)
Handle hurd-i386 as well.

debian/patches/kfreebsd-hurd.patch [new file with mode: 0644]
debian/patches/kfreebsd.patch [deleted file]
debian/patches/series

diff --git a/debian/patches/kfreebsd-hurd.patch b/debian/patches/kfreebsd-hurd.patch
new file mode 100644 (file)
index 0000000..ef20f08
--- /dev/null
@@ -0,0 +1,19 @@
+Description: fix compilation error on kFreeBSD and Hurd
+Origin: vendor
+Bug-Debian: https://bugs.debian.org/764117
+Forwarded: http://dev.kryo.se/iodine/ticket/121
+Author: gregor herrmann <gregoa@debian.org>
+Last-Update: 2014-10-06
+
+--- 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|GNU)
++                      echo '-D_GNU_SOURCE'
++              ;;
+       esac
+ ;;
+ *)
diff --git a/debian/patches/kfreebsd.patch b/debian/patches/kfreebsd.patch
deleted file mode 100644 (file)
index aa59555..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-Description: fix compilation error on kFreeBSD
-Origin: vendor
-Bug-Debian: https://bugs.debian.org/764117
-Forwarded: http://dev.kryo.se/iodine/ticket/121
-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 cf7a70225abf1502a0d802fff13f8a4e3a1aaccd..27410480a16a10358255ac0709de4075e3139f6e 100644 (file)
@@ -1,4 +1,4 @@
 cflags.patch
 verbose-build.patch
 0001-osflags-use-pkg-config-for-systemd-support.patch
-kfreebsd.patch
+kfreebsd-hurd.patch