Fix compile bug for systems that have nl_langinfo but CODESET undefined
[yaz-moved-to-github.git] / client / client.c
index 0327810..8afcd37 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1995-2003, Index Data
  * See the file LICENSE for details.
  *
- * $Id: client.c,v 1.183 2003-02-23 20:40:17 adam Exp $
+ * $Id: client.c,v 1.184 2003-02-25 18:35:48 adam Exp $
  */
 
 #include <stdio.h>
@@ -3321,8 +3321,10 @@ int main(int argc, char **argv)
         fprintf (stderr, "setlocale failed\n");
 #endif
 #if HAVE_LANGINFO_H
+#ifdef CODESET
     codeset = nl_langinfo(CODESET);
 #endif
+#endif
 
     while ((ret = options("k:c:a:m:v:p:u:t:", argv, argc, &arg)) != -2)
     {