aboutsummaryrefslogtreecommitdiffstats
path: root/extension/fnmatch.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-12-29 19:38:09 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-12-29 19:38:09 +0200
commita26ea21bba35f0118c7d5c4414c6f6c7fa74b16b (patch)
tree94991ccaf7e818be602a349a66530640158fb765 /extension/fnmatch.c
parent434a743610b2856078b120cb50bfe92155f8c49c (diff)
downloadegawk-a26ea21bba35f0118c7d5c4414c6f6c7fa74b16b.tar.gz
egawk-a26ea21bba35f0118c7d5c4414c6f6c7fa74b16b.tar.bz2
egawk-a26ea21bba35f0118c7d5c4414c6f6c7fa74b16b.zip
Enable compiling extensions on VMS.
Diffstat (limited to 'extension/fnmatch.c')
-rw-r--r--extension/fnmatch.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/extension/fnmatch.c b/extension/fnmatch.c
index a67bc25f..a85bcc78 100644
--- a/extension/fnmatch.c
+++ b/extension/fnmatch.c
@@ -45,15 +45,29 @@
#define _(msgid) gettext(msgid)
#define N_(msgid) msgid
+#ifdef __VMS
+#define __iswctype iswctype
+#define __btowc btowc
+#endif
+
#define _GNU_SOURCE 1 /* use GNU extensions if they're there */
#ifdef HAVE_FNMATCH_H
#include <fnmatch.h>
#else
+#ifdef __VMS
+#include "fnmatch.h" /* version that comes with gawk */
+#else
#include "../missing_d/fnmatch.h" /* version that comes with gawk */
#endif
+#define HAVE_FNMATCH_H
+#endif
#ifndef HAVE_FNMATCH
+#ifdef __VMS
+#include "fnmatch.c" /* ditto */
+#else
#include "../missing_d/fnmatch.c" /* ditto */
+#endif
#define HAVE_FNMATCH
#endif