summaryrefslogtreecommitdiff
path: root/utils/chroot_realpath.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-09 21:48:48 +0000
committerMike Frysinger <vapier@gentoo.org>2009-02-09 21:48:48 +0000
commit32242e7e10276157533def1c92c4c720945510fc (patch)
treea91c4ec4e0a229c959c65d6f41f59c8c29648728 /utils/chroot_realpath.c
parent98f6d6a8ebd80e9223a4e213a85fd3d0cf1c4190 (diff)
unify the headers/random defines into porting.h to avoid duplication/rot
Diffstat (limited to 'utils/chroot_realpath.c')
-rw-r--r--utils/chroot_realpath.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/utils/chroot_realpath.c b/utils/chroot_realpath.c
index ff1d85d7f..82ccbf691 100644
--- a/utils/chroot_realpath.c
+++ b/utils/chroot_realpath.c
@@ -20,23 +20,7 @@
* 2005/09/12: Dan Howell (modified from realpath.c to emulate chroot)
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#include <sys/types.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <strings.h>
-#include <limits.h> /* for PATH_MAX */
-#include <sys/param.h> /* for MAXPATHLEN */
-#include <errno.h>
-#include <sys/stat.h> /* for S_IFLNK */
-
-#ifndef PATH_MAX
-#define PATH_MAX _POSIX_PATH_MAX
-#endif
+#include "porting.h"
#define MAX_READLINKS 32