X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fxemacs-chise.git.1;a=blobdiff_plain;f=src%2Frealpath.c;h=f81bab663d12ce0b99bbb23dd37a7406d3ee299d;hp=78ccc25a6278efc37b225119b3890f845f4f2104;hb=ea1ea793fe6e244ef5555ed983423a204101af13;hpb=399b9f4466f37412410de8ec4a08e3dc5504ad10 diff --git a/src/realpath.c b/src/realpath.c index 78ccc25..f81bab6 100644 --- a/src/realpath.c +++ b/src/realpath.c @@ -22,25 +22,20 @@ Boston, MA 02111-1307, USA. */ /* Synched up with: Not in FSF. */ -#ifdef HAVE_CONFIG_H #include -#endif #include -#if defined(HAVE_UNISTD_H) || defined(STDC_HEADERS) -#include -#endif #include #include +#include +#ifdef HAVE_UNISTD_H +#include +#endif #ifdef _POSIX_VERSION #include /* for PATH_MAX */ #else #include /* for MAXPATHLEN */ #endif -#include -#ifndef STDC_HEADERS -extern int errno; -#endif #ifdef WINDOWSNT #include @@ -62,13 +57,8 @@ extern int errno; #define MAX_READLINKS 32 -#ifdef __STDC__ -char *xrealpath(const char *path, char resolved_path []) -#else -char *xrealpath(path, resolved_path) -const char *path; -char resolved_path []; -#endif +char * +xrealpath (const char *path, char resolved_path []) { char copy_path[PATH_MAX]; char *new_path = resolved_path;