diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-06-07 12:04:25 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-06-07 12:04:25 +0000 |
commit | df0b307ca9a3f9cf72cfebef7621fdb2eb6a7000 (patch) | |
tree | 2e8dbe6c44e58fe377d0b19a2130749211c9dd7d /src/makepath.c | |
parent | 7a9d9c64391fef948498a1a8c58dc039db8c2d37 (diff) | |
download | cpio-df0b307ca9a3f9cf72cfebef7621fdb2eb6a7000.tar.gz cpio-df0b307ca9a3f9cf72cfebef7621fdb2eb6a7000.tar.bz2 |
Remove useless includes
Diffstat (limited to 'src/makepath.c')
-rw-r--r-- | src/makepath.c | 37 |
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. |