about summary refs log tree commit diff
path: root/iconv/iconv_prog.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-07-08 07:32:45 +0000
committerUlrich Drepper <drepper@redhat.com>2001-07-08 07:32:45 +0000
commitd3f8be6d13d065287a55177878ebac4b75e197e2 (patch)
tree25893ae346acac87b5210fb4be028ee91cfc67ad /iconv/iconv_prog.c
parent73c342ebcc172bd4a034d62a28e7bb6cd4e12e03 (diff)
downloadglibc-d3f8be6d13d065287a55177878ebac4b75e197e2.tar.gz
glibc-d3f8be6d13d065287a55177878ebac4b75e197e2.tar.xz
glibc-d3f8be6d13d065287a55177878ebac4b75e197e2.zip
Update.
	* iconv/iconv_prog.c (main): Don't unconditionally define
	variables only use if _POSIX_MAPPED_FILES is defined.
Diffstat (limited to 'iconv/iconv_prog.c')
-rw-r--r--iconv/iconv_prog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c
index 59e120fe3f..00b4b95672 100644
--- a/iconv/iconv_prog.c
+++ b/iconv/iconv_prog.c
@@ -246,8 +246,10 @@ main (int argc, char *argv[])
       else
 	do
 	  {
+#ifdef _POSIX_MAPPED_FILES
 	    struct stat st;
 	    char *addr;
+#endif
 	    int fd;
 
 	    if (verbose)