+2005-06-08 Bruno Haible <bruno@clisp.org>
+
+ * canonicalize.c (__realpath): Avoid gcc warnings on platforms that
+ don't support symbolic links.
+
2005-06-08 Bruno Haible <bruno@clisp.org>
* binary-io.h (fileno): Undefine before defining it. Avoids a gcc
/* Binary mode I/O.
- Copyright (C) 2001, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#if O_BINARY
# if !(defined __EMX__ || defined __DJGPP__ || defined __CYGWIN__)
# define setmode _setmode
+# undef fileno
# define fileno _fileno
# endif
# if defined __DJGPP__ || defined __CYGWIN__
/* Return the canonical absolute name of a given file.
- Copyright (C) 1996-2003 Free Software Foundation, Inc.
+ Copyright (C) 1996-2003, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
char *rpath, *dest, *extra_buf = NULL;
const char *start, *end, *rpath_limit;
long int path_max;
+#ifdef S_ISLNK
int num_links = 0;
+#endif
if (name == NULL)
{
#else
struct stat st;
#endif
- int n;
/* Skip sequence of multiple path-separators. */
while (*start == '/')
{
char *buf;
size_t len;
+ int n;
if (++num_links > MAXSYMLINKS)
{