#! /bin/sh /usr/share/dpatch/dpatch-run ## 86_PATH_MAX.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Patch to define PATH_MAX on systems which do not. ## DP: http://bugs.mysql.com/16574 @DPATCH@ --- mysql-dfsg-5.0-5.0.18.orig/ndb/src/common/logger/FileLogHandler.cpp +++ mysql-dfsg-5.0-5.0.18/ndb/src/common/logger/FileLogHandler.cpp @@ -18,6 +18,10 @@ #include #include +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + // // PUBLIC // --- mysql-dfsg-5.0-5.0.18.orig/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp +++ mysql-dfsg-5.0-5.0.18/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp @@ -64,6 +64,10 @@ #define WRITEBUFFERSIZE 262144 #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + const char *actionName[] = { "open", "close", --- mysql-dfsg-5.0-5.0.18.orig/ndb/src/kernel/blocks/ndbfs/Filename.cpp +++ mysql-dfsg-5.0-5.0.18/ndb/src/kernel/blocks/ndbfs/Filename.cpp @@ -25,6 +25,10 @@ #include +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + static const char* fileExtension[] = { ".Data", ".FragLog", --- mysql-dfsg-5.0-5.0.18.orig/ndb/src/kernel/blocks/ndbfs/Filename.hpp +++ mysql-dfsg-5.0-5.0.18/ndb/src/kernel/blocks/ndbfs/Filename.hpp @@ -17,6 +17,10 @@ #ifndef Filename_H #define Filename_H +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + //=========================================================================== // // .DESCRIPTION --- mysql-dfsg-5.0-5.0.18.orig/ndb/src/kernel/vm/Configuration.cpp +++ mysql-dfsg-5.0-5.0.18/ndb/src/kernel/vm/Configuration.cpp @@ -39,6 +39,10 @@ #include #include +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + extern "C" { void ndbSetOwnVersion(); } --- mysql-dfsg-5.0-5.0.18.orig/ndb/src/cw/cpcd/CPCD.cpp +++ mysql-dfsg-5.0-5.0.18/ndb/src/cw/cpcd/CPCD.cpp @@ -24,6 +24,10 @@ #include "common.hpp" +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + extern const ParserRow commands[]; --- mysql-dfsg-5.0-5.0.18.orig/ndb/src/cw/cpcd/Process.cpp +++ mysql-dfsg-5.0-5.0.18/ndb/src/cw/cpcd/Process.cpp @@ -27,6 +27,10 @@ #include #endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + void CPCD::Process::print(FILE * f){ fprintf(f, "define process\n"); --- mysql-dfsg-5.0-5.0.18.orig/ndb/tools/restore/Restore.hpp +++ mysql-dfsg-5.0-5.0.18/ndb/tools/restore/Restore.hpp @@ -26,6 +26,10 @@ #include #include +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + static const char * delimiter = ";"; // Delimiter in file dump const int FileNameLenC = 256;