From 2b7e2f9a7df80c0dc30e35f8d8aeb9db6c7e786a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 21 Jan 2000 13:54:13 +0000 Subject: [PATCH] fix lyx::mkdir 2nd argument. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@434 a592a061-630c-0410-9148-cb99ea01b6c8 --- ChangeLog | 6 ++++++ src/support/lyxlib.h | 4 ++-- src/support/mkdir.C | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index e674a996b1..2a5a9fc49a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-01-21 Jean-Marc Lasgouttes + + * src/support/mkdir.C (mkdir): change second argument of mkdir to + unsigned long int. + * src/support/lyxlib.h: ditto. + 2000-01-20 Lars Gullik Bjønnes * src/support/lyxsum.C: move using std::ifstream inside diff --git a/src/support/lyxlib.h b/src/support/lyxlib.h index 65db8b9f88..5d75f098c6 100644 --- a/src/support/lyxlib.h +++ b/src/support/lyxlib.h @@ -36,7 +36,7 @@ namespace lyx { /// void abort(); /// - int mkdir(char const * pathname, unsigned int mode); + int mkdir(char const * pathname, unsigned long int mode); /// int putenv(char const * str); } @@ -57,7 +57,7 @@ struct lyx { /// static void abort(); /// - static int mkdir(char const * pathname, unsigned int mode); + static int mkdir(char const * pathname, unsigned long int mode); /// static int putenv(char const * str); }; diff --git a/src/support/mkdir.C b/src/support/mkdir.C index dcfd322b4c..580fcc8f94 100644 --- a/src/support/mkdir.C +++ b/src/support/mkdir.C @@ -7,7 +7,7 @@ #ifdef CXX_WORKING_NAMESPACES namespace lyx { - int mkdir(char const * pathname, mode_t mode) + int mkdir(char const * pathname, unsigned long int mode) { return ::mkdir(pathname, mode); } @@ -15,7 +15,7 @@ namespace lyx { #else #include "lyxlib.h" -int lyx::mkdir(char const * pathname, mode_t mode) +int lyx::mkdir(char const * pathname, unsigned long int mode) { return ::mkdir(pathname, mode); } -- 2.39.2