diff options
Diffstat (limited to 'ndb/src/common/logger/FileLogHandler.cpp')
-rw-r--r-- | ndb/src/common/logger/FileLogHandler.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ndb/src/common/logger/FileLogHandler.cpp b/ndb/src/common/logger/FileLogHandler.cpp index 1b5e8f8d8ca..632db71db15 100644 --- a/ndb/src/common/logger/FileLogHandler.cpp +++ b/ndb/src/common/logger/FileLogHandler.cpp @@ -14,15 +14,10 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include <ndb_global.h> #include <FileLogHandler.hpp> - #include <File.hpp> -// alt use PATH_MAX -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif - // // PUBLIC // @@ -151,7 +146,7 @@ FileLogHandler::createNewFile() { bool rc = true; int fileNo = 1; - char newName[MAXPATHLEN]; + char newName[PATH_MAX]; do { |