aboutsummaryrefslogtreecommitdiffstats
path: root/extension/filefuncs.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-08-02 17:48:59 -0400
committerArnold D. Robbins <arnold@skeeve.com>2013-08-02 17:48:59 -0400
commit3f60b6ccc298f1eddac0ce917712d84212e015d0 (patch)
tree0baf5546338f132ac69c149b31d55d70743e93cd /extension/filefuncs.c
parent7ac1bb98e0ec7cc957b965bea8a1c489669c24b6 (diff)
downloadegawk-3f60b6ccc298f1eddac0ce917712d84212e015d0.tar.gz
egawk-3f60b6ccc298f1eddac0ce917712d84212e015d0.tar.bz2
egawk-3f60b6ccc298f1eddac0ce917712d84212e015d0.zip
Minor improvement for Windows in filefuncs.c.
Diffstat (limited to 'extension/filefuncs.c')
-rw-r--r--extension/filefuncs.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/extension/filefuncs.c b/extension/filefuncs.c
index ad6a991d..0ffddedd 100644
--- a/extension/filefuncs.c
+++ b/extension/filefuncs.c
@@ -511,7 +511,24 @@ init_filefuncs(void)
return errors == 0;
}
-#ifndef _WIN32
+#ifdef _WIN32
+/* do_fts --- walk a heirarchy and fill in an array */
+
+/*
+ * Usage from awk:
+ * flags = or(FTS_PHYSICAL, ...)
+ * result = fts(pathlist, flags, filedata)
+ */
+
+static awk_value_t *
+do_fts(int nargs, awk_value_t *result)
+{
+ fatal(ext_id, _("fts is not supported on this system"));
+
+ return NULL; /* for the compiler */
+}
+
+#else /* _WIN32 */
static int fts_errors = 0;