summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/replace.c2
-rw-r--r--lib/replace/replace.h5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/replace/replace.c b/lib/replace/replace.c
index d757a0154e..0683f556eb 100644
--- a/lib/replace/replace.c
+++ b/lib/replace/replace.c
@@ -667,5 +667,3 @@ char *rep_realpath(const char *path, char *resolved_path)
return NULL;
}
#endif
-
-
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 8d0dd57064..d717d6391c 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -220,6 +220,11 @@ int rep_setegid(gid_t);
int rep_chown(const char *path, uid_t uid, gid_t gid);
#endif
+#ifndef HAVE_CHROOT
+#define chroot rep_chroot
+int rep_chroot(const char *dirname);
+#endif
+
#ifndef HAVE_LINK
#define link rep_link
int rep_link(const char *oldpath, const char *newpath);