summaryrefslogtreecommitdiff
path: root/debian/patches/20_hurd_PATH_MAX.patch
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-25 15:12:32 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-09-25 15:12:32 +0200
commit98f5506bd75d0b9332bfb1041e1fc2b4f1587a09 (patch)
tree9348dda5a64e225a9c6134f45d8a9468a208a015 /debian/patches/20_hurd_PATH_MAX.patch
parent6d8fb97b4ebf1ca5173adab14ac30e5d43e6c633 (diff)
Debian bug #762771, #762772, #762773, #762774, #762780
Diffstat (limited to 'debian/patches/20_hurd_PATH_MAX.patch')
-rw-r--r--debian/patches/20_hurd_PATH_MAX.patch81
1 files changed, 81 insertions, 0 deletions
diff --git a/debian/patches/20_hurd_PATH_MAX.patch b/debian/patches/20_hurd_PATH_MAX.patch
new file mode 100644
index 0000000..e5b2b40
--- /dev/null
+++ b/debian/patches/20_hurd_PATH_MAX.patch
@@ -0,0 +1,81 @@
+Description: Add on hurdi386 missing PATH_MAX
+Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762774
+Last-Update: 2014-09-25
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: trunk/numlib/numsup.c
+===================================================================
+--- trunk.orig/numlib/numsup.c 2014-01-31 05:08:43.000000000 +0100
++++ trunk/numlib/numsup.c 2014-09-25 14:02:54.718876001 +0200
+@@ -39,6 +39,10 @@
+
+ /* Globals */
+
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ char *exe_path = "\000"; /* Directory executable resides in ('/' dir separator) */
+ //char *error_program = "Unknown"; /* Name to report as responsible for an error */
+
+Index: trunk/spectro/mongoose.c
+===================================================================
+--- trunk.orig/spectro/mongoose.c 2014-01-31 05:08:55.000000000 +0100
++++ trunk/spectro/mongoose.c 2014-09-25 14:06:05.274863478 +0200
+@@ -18,6 +18,10 @@
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ // THE SOFTWARE.
+
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ #if defined(_WIN32)
+ #define _CRT_SECURE_NO_WARNINGS // Disable deprecation warning in VS2005
+ #else
+Index: trunk/spectro/usbio_lx.c
+===================================================================
+--- trunk.orig/spectro/usbio_lx.c 2014-01-31 05:08:58.000000000 +0100
++++ trunk/spectro/usbio_lx.c 2014-09-25 14:07:12.552271544 +0200
+@@ -33,6 +33,10 @@
+ #define poll_x poll
+ #endif
+
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ /* USB descriptors are little endian */
+
+ /* Take a word sized return buffer, and convert it to an unsigned int */
+Index: trunk/spectro/usbio_nt.c
+===================================================================
+--- trunk.orig/spectro/usbio_nt.c 2014-01-31 05:08:58.000000000 +0100
++++ trunk/spectro/usbio_nt.c 2014-09-25 14:07:37.048784270 +0200
+@@ -31,6 +31,10 @@
+ #define LIBUSBW1_PATH_MAX 512
+ #define LIBUSBW1_DEFAULT_TIMEOUT 5000
+
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ /* USB descriptors are little endian */
+
+ /* Take a word sized return buffer, and convert it to an unsigned int */
+Index: trunk/spectro/hidio.c
+===================================================================
+--- trunk.orig/spectro/hidio.c 2014-09-25 11:17:32.000000000 +0200
++++ trunk/spectro/hidio.c 2014-09-25 14:08:43.834182211 +0200
+@@ -97,6 +97,10 @@
+ #endif
+ #endif
+
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
++
+ #if defined(NT)
+
+ /* Declartions to enable HID access without using the DDK */