(main): Don't unconditionally define variables only use if
authordrepper <drepper>
Sun, 8 Jul 2001 07:30:44 +0000 (07:30 +0000)
committerdrepper <drepper>
Sun, 8 Jul 2001 07:30:44 +0000 (07:30 +0000)
_POSIX_MAPPED_FILES is defined.

iconv/iconv_prog.c

index 59e120f..00b4b95 100644 (file)
@@ -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)