changeset 12108:fd6226a4117b

fchdir: avoid compiler warning Using fchdir without canonicalize-lgpl gave a warning. * lib/fchdir.c (canonicalize_file_name) [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw. Signed-off-by: Eric Blake <ebb9@byu.net>
author Eric Blake <ebb9@byu.net>
date Fri, 02 Oct 2009 22:32:45 -0600
parents 90198e1c7821
children b56c1bd3de46
files ChangeLog lib/fchdir.c
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-10-02  Eric Blake  <ebb9@byu.net>
 
+	fchdir: avoid compiler warning
+	* lib/fchdir.c (canonicalize_file_name)
+	[!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
+
 	test-open: support mingw errno values
 	* tests/test-open.h (test_open): Relax test.
 	* tests/test-fopen.h (test_fopen): Likewise.
--- a/lib/fchdir.c
+++ b/lib/fchdir.c
@@ -38,6 +38,7 @@
 #  define HAVE_CANONICALIZE_FILE_NAME 1
 # else
 #  define HAVE_CANONICALIZE_FILE_NAME 0
+#  define canonicalize_file_name(name) NULL
 # endif
 #endif