Package: argyll / 3.3.0+repack-1

0115_hurd_PATH_MAX.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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/
--- a/numlib/numsup.c
+++ b/numlib/numsup.c
@@ -46,8 +46,12 @@
  */
 
 /* 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 */
 
 static int g_log_init = 0;	/* Initialised ? */
--- a/spectro/usbio_lx.c
+++ b/spectro/usbio_lx.c
@@ -37,8 +37,12 @@
 #ifndef PATH_MAX
 # define PATH_MAX 4096
 #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 */
 static unsigned int buf2uint(unsigned char *buf) {
--- a/spectro/usbio_nt.c
+++ b/spectro/usbio_nt.c
@@ -206,8 +206,12 @@
 }
 
 /* =============================================================================== */
 
+#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 */
 static unsigned int usb2uint(unsigned char *buf) {
--- a/spectro/hidio.c
+++ b/spectro/hidio.c
@@ -100,8 +100,12 @@
 # define HID_MAX_USAGES 1024
 #endif
 #endif
 
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
 #if defined(NT)
 
 /* Declartions to enable HID access without using the DDK */