Mercurial > hg > xemacs-beta
diff src/realpath.c @ 424:11054d720c21 r21-2-20
Import from CVS: tag r21-2-20
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:26:11 +0200 |
parents | 697ef44129c6 |
children |
line wrap: on
line diff
--- a/src/realpath.c Mon Aug 13 11:25:03 2007 +0200 +++ b/src/realpath.c Mon Aug 13 11:26:11 2007 +0200 @@ -22,25 +22,20 @@ /* Synched up with: Not in FSF. */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif #include <sys/types.h> -#if defined(HAVE_UNISTD_H) || defined(STDC_HEADERS) +#include <stdio.h> +#include <string.h> +#include <errno.h> +#ifdef HAVE_UNISTD_H #include <unistd.h> #endif -#include <stdio.h> -#include <string.h> #ifdef _POSIX_VERSION #include <limits.h> /* for PATH_MAX */ #else #include <sys/param.h> /* for MAXPATHLEN */ #endif -#include <errno.h> -#ifndef STDC_HEADERS -extern int errno; -#endif #ifdef WINDOWSNT #include <direct.h> @@ -62,13 +57,8 @@ #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;