File: hurd-maxpathlen.patch

package info (click to toggle)
firebird3.0 3.0.13.ds7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,632 kB
  • sloc: ansic: 374,403; cpp: 319,973; sql: 14,691; pascal: 14,532; yacc: 7,557; fortran: 5,645; sh: 5,336; makefile: 1,041; perl: 194; sed: 83; awk: 76; xml: 19; csh: 15
file content (51 lines) | stat: -rw-r--r-- 1,231 bytes parent folder | download | duplicates (2)
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
Description: move fallback definition of MAXPATHLEN outside the WinNT block
 helps the hurd build move a bit further
 .
 Additionally, include common.h in gpre.h to get the MAXPATHLEN define
 .
 The effor to build firebird on hurd is tracked at
 <https://bugs.debian.org/626931>
Author: Damyan Ivanov
--- a/src/gpre/gpre.h
+++ b/src/gpre/gpre.h
@@ -66,6 +66,7 @@
 #include "dyn_consts.h"
 #include "../jrd/ibase.h"
 #include "../jrd/constants.h"
+#include "../common/common.h"
 
 #ifdef GPRE_FORTRAN
 #if defined AIX || defined AIX_PPC || defined __sun
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -563,14 +563,6 @@ extern "C" int remove(const char* path);
 #define API_ROUTINE_VARARG      __cdecl
 #define CLIB_ROUTINE    __cdecl
 
-#ifndef MAXPATHLEN
-#ifdef MAX_PATH
-#define MAXPATHLEN MAX_PATH
-#else
-#define MAXPATHLEN 260
-#endif
-#endif
-
 #define ERRNO		GetLastError()
 #define INET_ERRNO	WSAGetLastError()
 #define H_ERRNO		WSAGetLastError()
@@ -583,6 +575,15 @@ extern "C" int remove(const char* path);
 #endif /* WIN_NT */
 
 
+#ifndef MAXPATHLEN
+#ifdef MAX_PATH
+#define MAXPATHLEN MAX_PATH
+#else
+#define MAXPATHLEN 260
+#endif
+#endif
+
+
 #ifndef FB_CPU
 #error Define FB_CPU for your platform
 #endif