summaryrefslogtreecommitdiff
path: root/lib/makepath.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-11-06 17:51:23 +0000
committerJim Meyering <jim@meyering.net>1994-11-06 17:51:23 +0000
commit4c722a96ba32e2a32fad410cd7047acba4e880db (patch)
tree0ad884bbad909297f3df45fecdffad7d4206305d /lib/makepath.c
parentc67fdb5c94a76a9ef3e6bbbbd8d31e8deac1c6e8 (diff)
downloadcoreutils-4c722a96ba32e2a32fad410cd7047acba4e880db.tar.xz
merge with 1.12
Diffstat (limited to 'lib/makepath.c')
-rw-r--r--lib/makepath.c11
1 files changed, 11 insertions, 0 deletions
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;