aboutsummaryrefslogtreecommitdiffstats
path: root/pc/gawkmisc.pc
diff options
context:
space:
mode:
Diffstat (limited to 'pc/gawkmisc.pc')
-rw-r--r--pc/gawkmisc.pc15
1 files changed, 15 insertions, 0 deletions
diff --git a/pc/gawkmisc.pc b/pc/gawkmisc.pc
index 2e581011..e0f3f3ff 100644
--- a/pc/gawkmisc.pc
+++ b/pc/gawkmisc.pc
@@ -1108,6 +1108,21 @@ init_sockets(void)
#ifdef __DJGPP__
+/* Replacement for the missing nl_langinfo. DJGPP provides only C locale. */
+#include <langinfo.h>
+
+char *
+nl_langinfo (int item)
+{
+ switch (item)
+ {
+ case CODESET:
+ default:
+ return (char *) "";
+ }
+}
+
+
# if __DJGPP__ == 2 && __DJGPP_MINOR__ < 4
int
unsetenv (const char *name)