소스 검색

(main): Protect invocation of setlocale by ifdef.

Sergey Poznyakoff 20 년 전
부모
커밋
5842962ed6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/tar.c

+ 2 - 0
src/tar.c

@@ -1622,7 +1622,9 @@ main (int argc, char **argv)
   set_start_time ();
   program_name = argv[0];
 
+#ifdef HAVE_SETLOCALE
   setlocale (LC_ALL, "");
+#endif
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);