summaryrefslogtreecommitdiff
path: root/net-misc/cadaver/files/cadaver-0.23.2-disable-nls.patch
blob: 80f029f4f40f546cf338c6db553f005fe58849b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Fix building with --disable-nls.

--- a/src/cadaver.c
+++ b/src/cadaver.c
@@ -838,11 +838,11 @@
 
     progname = argv[0];
 
+#ifdef ENABLE_NLS
 #ifdef HAVE_SETLOCALE
     setlocale(LC_ALL, "");
 #endif
 
-#ifdef ENABLE_NLS
     bindtextdomain(PACKAGE_NAME, LOCALEDIR);
     textdomain(PACKAGE_NAME);
 #endif /* ENABLE_NLS */