projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix compile bug for systems that have nl_langinfo but CODESET undefined
[yaz-moved-to-github.git]
/
client
/
client.c
diff --git
a/client/client.c
b/client/client.c
index
0327810
..
8afcd37
100644
(file)
--- a/
client/client.c
+++ b/
client/client.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
* 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>
*/
#include <stdio.h>
@@
-3321,8
+3321,10
@@
int main(int argc, char **argv)
fprintf (stderr, "setlocale failed\n");
#endif
#if HAVE_LANGINFO_H
fprintf (stderr, "setlocale failed\n");
#endif
#if HAVE_LANGINFO_H
+#ifdef CODESET
codeset = nl_langinfo(CODESET);
#endif
codeset = nl_langinfo(CODESET);
#endif
+#endif
while ((ret = options("k:c:a:m:v:p:u:t:", argv, argc, &arg)) != -2)
{
while ((ret = options("k:c:a:m:v:p:u:t:", argv, argc, &arg)) != -2)
{