aboutsummaryrefslogtreecommitdiff
path: root/src/makepath.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-06-07 12:04:25 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-06-07 12:04:25 +0000
commitdf0b307ca9a3f9cf72cfebef7621fdb2eb6a7000 (patch)
tree2e8dbe6c44e58fe377d0b19a2130749211c9dd7d /src/makepath.c
parent7a9d9c64391fef948498a1a8c58dc039db8c2d37 (diff)
downloadcpio-df0b307ca9a3f9cf72cfebef7621fdb2eb6a7000.tar.gz
cpio-df0b307ca9a3f9cf72cfebef7621fdb2eb6a7000.tar.bz2
Remove useless includes
Diffstat (limited to 'src/makepath.c')
-rw-r--r--src/makepath.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/makepath.c b/src/makepath.c
index d96849f..ff4c25f 100644
--- a/src/makepath.c
+++ b/src/makepath.c
@@ -24,46 +24,11 @@
come together again in the future. */
#include <system.h>
-
-#ifdef __GNUC__
-#define alloca __builtin_alloca
-#else
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#else
-#ifdef _AIX
- #pragma alloca
-#else
-char *alloca ();
-#endif
-#endif
-#endif
+#include <paxlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#if !defined(S_ISDIR) && defined(S_IFDIR)
-#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-#endif
-
-#include <errno.h>
-#ifdef STDC_HEADERS
-#include <stdlib.h>
-#else
-extern int errno;
-#endif
-
-#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
-#include <string.h>
-#ifndef index
-#define index strchr
-#endif
-#else
-#include <strings.h>
-#endif
/* Ensure that the directory ARGPATH exists.
Remove any trailing slashes from ARGPATH before calling this function.

Return to:

Send suggestions and report system problems to the System administrator.