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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## 86_PATH_MAX.dpatch by <mbanck@debian.org> and Cyril Brulebois
##
## 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 and Debian bug #378949, #348182.
@DPATCH@
--- old/ndb/src/common/logger/FileLogHandler.cpp
+++ new/ndb/src/common/logger/FileLogHandler.cpp
@@ -18,6 +18,10 @@
#include <FileLogHandler.hpp>
#include <File.hpp>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
//
// PUBLIC
//
--- old/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
+++ new/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",
--- old/ndb/src/kernel/blocks/ndbfs/Filename.cpp
+++ new/ndb/src/kernel/blocks/ndbfs/Filename.cpp
@@ -25,6 +25,10 @@
#include <signaldata/FsOpenReq.hpp>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
static const char* fileExtension[] = {
".Data",
".FragLog",
--- old/ndb/src/kernel/blocks/ndbfs/Filename.hpp
+++ new/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
--- old/ndb/src/kernel/vm/Configuration.cpp
+++ new/ndb/src/kernel/vm/Configuration.cpp
@@ -39,6 +39,10 @@
#include <LogLevel.hpp>
#include <NdbSleep.h>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
extern "C" {
void ndbSetOwnVersion();
}
--- old/ndb/src/cw/cpcd/CPCD.cpp
+++ new/ndb/src/cw/cpcd/CPCD.cpp
@@ -24,6 +24,10 @@
#include "common.hpp"
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
extern const ParserRow<CPCDAPISession> commands[];
--- old/ndb/src/cw/cpcd/Process.cpp
+++ new/ndb/src/cw/cpcd/Process.cpp
@@ -27,6 +27,10 @@
#include <sys/resource.h>
#endif
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
void
CPCD::Process::print(FILE * f){
fprintf(f, "define process\n");
--- old/ndb/tools/restore/Restore.hpp
+++ new/ndb/tools/restore/Restore.hpp
@@ -26,6 +26,10 @@
#include <ndb_version.h>
#include <version.h>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
static const char * delimiter = ";"; // Delimiter in file dump
const int FileNameLenC = 256;
--- old/ndb/include/util/File.hpp
+++ new/ndb/include/util/File.hpp
@@ -19,6 +19,10 @@
#include <ndb_global.h>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
/**
* This class provides a file abstraction . It has operations
* to create, read, write and delete a file.
--- old/ndb/src/common/portlib/NdbConfig.c
+++ new/ndb/src/common/portlib/NdbConfig.c
@@ -20,6 +20,10 @@
#include <NdbMem.h>
#include <basestring_vsnprintf.h>
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
static const char *datadir_path= 0;
const char *
|