From 911f8404883ff81ab40f0cfb1fe0eae3459af2f4 Mon Sep 17 00:00:00 2001 From: dimitr Date: Wed, 6 Nov 2002 12:33:29 +0000 Subject: [PATCH] Fixed MAXPATHLEN cleanup for win32. --- src/include/gen/autoconfig_msvc.h | 3 +++ src/intl/ld.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/include/gen/autoconfig_msvc.h b/src/include/gen/autoconfig_msvc.h index 4d999c69f2..ac098c1261 100644 --- a/src/include/gen/autoconfig_msvc.h +++ b/src/include/gen/autoconfig_msvc.h @@ -130,6 +130,9 @@ /* Support databases on Raw Devices (UNIX only) */ #undef SUPPORT_RAW_DEVICES +/* Maximum allowed pathname length */ +#define MAXPATHLEN 260 // should correspond to MAX_PATH define in windef.h + /* CPU types */ #undef PowerPC #undef sparc diff --git a/src/intl/ld.c b/src/intl/ld.c index 19b58a100e..b9ac8441b9 100644 --- a/src/intl/ld.c +++ b/src/intl/ld.c @@ -26,7 +26,9 @@ #include "../intl/ldcommon.h" #include "../intl/ld_proto.h" +#ifdef HAVE_SYS_PARAM_H #include /* for MAXPATHLEN */ +#endif /* Commented out to make Linux version work because it is inaccessiable on all known platforms. Nickolay Samofatov, 10 Sept 2002