summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-10-05 23:50:54 +0200
committerOndřej Surý <ondrej@sury.org>2013-10-05 23:51:27 +0200
commitbab309da8b3f519a7e9d28e09425527b21af57cd (patch)
treefab9a46c315d15bb67e67857dee88361489c412e /debian
parent628ed2a09071f71931a582a60f1b797ded769109 (diff)
downloadknot-bab309da8b3f519a7e9d28e09425527b21af57cd.tar.gz
Define #PATH_MAX to make GNU Hurd happy
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/knot_PATH_MAX.patch13
-rw-r--r--debian/patches/series1
2 files changed, 14 insertions, 0 deletions
diff --git a/debian/patches/knot_PATH_MAX.patch b/debian/patches/knot_PATH_MAX.patch
new file mode 100644
index 0000000..858defb
--- /dev/null
+++ b/debian/patches/knot_PATH_MAX.patch
@@ -0,0 +1,13 @@
+--- knot.orig/src/libknot/common.h
++++ knot/src/libknot/common.h
+@@ -38,6 +38,10 @@ typedef unsigned int uint; /*!< \brief U
+ #define UINT_DEFINED
+ #endif
+
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ /*! \brief Eliminate compiler warning with unused parameters. */
+ #define UNUSED(param) (void)(param)
+
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..d402f44 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+knot_PATH_MAX.patch