X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fmakepath.c;h=b59211672dd6319ba892bc515760f25f5f67354e;hb=8e8fe8777e71f90eeec25ac267d800150ec34870;hp=9066874cd9197feb1f692045f66d72f5e76bfacb;hpb=32545ade5ca173c6f965614592ee239971346eb8;p=gnulib.git diff --git a/lib/makepath.c b/lib/makepath.c index 9066874cd..b59211672 100644 --- a/lib/makepath.c +++ b/lib/makepath.c @@ -99,6 +99,16 @@ void error (); Return 0 if ARGPATH exists as a directory with the proper ownership and permissions when done, otherwise 1. */ +#if defined (__GNUC__) || (defined (__STDC__) && __STDC__) +int +make_path (const char *argpath, + int mode, + int parent_mode, + uid_t owner, + gid_t group, + int preserve_existing, + const char *verbose_fmt_string) +#else int make_path (argpath, mode, parent_mode, owner, group, preserve_existing, verbose_fmt_string) @@ -109,6 +119,7 @@ make_path (argpath, mode, parent_mode, owner, group, preserve_existing, gid_t group; int preserve_existing; const char *verbose_fmt_string; +#endif { char *dirpath; /* A copy we can scribble NULs on. */ struct stat stats;