From 7e977e1b51403223cf1924a3b07d7429f9d509c0 Mon Sep 17 00:00:00 2001 From: goodale Date: Mon, 8 May 2000 10:26:36 +0000 Subject: Changing macro name to keep solaris compiler happy. Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1630 17b73243-c579-4c4c-a9d2-2d5706c11dac --- src/util/File.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/util') diff --git a/src/util/File.c b/src/util/File.c index 5396a47a..2c75ae8a 100644 --- a/src/util/File.c +++ b/src/util/File.c @@ -30,14 +30,13 @@ CCTK_FILEVERSION(util_File_c) /* Some systems don't have mode_t and only pass one argument to mkdir. */ #ifdef HAVE_MODE_T -#define mkdir(a,b) mkdir(a,b) +#define MKDIR_WRAPPER(a,b) mkdir(a,b) #else /* FIXME: Temporary kludge until everyone has reconfigured */ #ifdef WIN32 -#define mkdir(a,b) mkdir(a) +#define MKDIR_WRAPPER(a,b) mkdir(a) #else -#define mkdir(a,b) mkdir(a,b) /* Should just be the clause with one argument, this one should go. */ #endif /* WIN32 */ @@ -178,7 +177,7 @@ int CCTK_MkDirs(const char *pathname, int mode) if(stat(current, &statbuf)) { CCTK_VInfo("Cactus","Creating directory: \"%s\"", current); - if(mkdir(current, mode) == -1) + if(MKDIR_WRAPPER(current, mode) == -1) { CCTK_VWarn(0,__LINE__,__FILE__,"Cactus","Failed to create directory \"%s\"", current); retval = -2; @@ -207,7 +206,7 @@ int CCTK_MkDirs(const char *pathname, int mode) if(stat(pathname, &statbuf)) { CCTK_VInfo("Cactus","Creating directory: \"%s\"", pathname); - if(mkdir(pathname, mode) == -1) + if(MKDIR_WRAPPER(pathname, mode) == -1) { CCTK_VWarn(0,__LINE__,__FILE__,"Cactus","Failed to create directory \"%s\"", pathname); retval = -2; -- cgit v1.2.3