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
|