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/common/common.h
+++ b/src/common/common.h
@@ -561,6 +561,13 @@ extern "C" int remove(const char* path);
 #define API_ROUTINE_VARARG      __cdecl
 #define CLIB_ROUTINE    __cdecl
 
+#define ERRNO		GetLastError()
+#define INET_ERRNO	WSAGetLastError()
+#define H_ERRNO		WSAGetLastError()
+
+#endif /* WIN_NT */
+
+
 #ifndef MAXPATHLEN
 #ifdef MAX_PATH
 #define MAXPATHLEN MAX_PATH
@@ -569,12 +576,6 @@ extern "C" int remove(const char* path);
 #endif
 #endif
 
-#define ERRNO		GetLastError()
-#define INET_ERRNO	WSAGetLastError()
-#define H_ERRNO		WSAGetLastError()
-
-#endif /* WIN_NT */
-
 
 #ifndef FB_CPU
 #error Define FB_CPU for your platform
