comparison src/realpath.c @ 410:de805c49cfc1 r21-2-35

Import from CVS: tag r21-2-35
author cvs
date Mon, 13 Aug 2007 11:19:21 +0200
parents a86b2b5e0111
children 697ef44129c6
comparison
equal deleted inserted replaced
409:301b9ebbdf3b 410:de805c49cfc1
36 36
37 #if defined (HAVE_SYS_PARAM_H) 37 #if defined (HAVE_SYS_PARAM_H)
38 #include <sys/param.h> 38 #include <sys/param.h>
39 #endif 39 #endif
40 40
41 #ifdef WINDOWSNT 41 #ifdef WIN32_NATIVE
42 #include <direct.h> 42 #include <direct.h>
43 #endif 43 #endif
44 44
45 #include <sys/stat.h> /* for S_IFLNK */ 45 #include <sys/stat.h> /* for S_IFLNK */
46 46
76 76
77 /* Make a copy of the source path since we may need to modify it. */ 77 /* Make a copy of the source path since we may need to modify it. */
78 strcpy (copy_path, path); 78 strcpy (copy_path, path);
79 path = copy_path; 79 path = copy_path;
80 max_path = copy_path + PATH_MAX - 2; 80 max_path = copy_path + PATH_MAX - 2;
81 #ifdef WINDOWSNT 81 #ifdef WIN32_NATIVE
82 /* 82 /*
83 ** In NT we have two different cases: (1) the path name begins 83 ** In NT we have two different cases: (1) the path name begins
84 ** with a drive letter, e.g., "C:"; and (2) the path name begins 84 ** with a drive letter, e.g., "C:"; and (2) the path name begins
85 ** with just a slash, which roots to the current drive. In the 85 ** with just a slash, which roots to the current drive. In the
86 ** first case we are going to leave things alone, in the second 86 ** first case we are going to leave things alone, in the second