aboutsummaryrefslogtreecommitdiffstats
path: root/extension/filefuncs.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-08-02 17:49:32 -0400
committerArnold D. Robbins <arnold@skeeve.com>2013-08-02 17:49:32 -0400
commit4cd5e81481d79644fbaee082116ada10da1df1ca (patch)
tree0baf5546338f132ac69c149b31d55d70743e93cd /extension/filefuncs.c
parentf37f28526d9ba96d6b21ab6d8ddb3a73de2dea5b (diff)
parent3f60b6ccc298f1eddac0ce917712d84212e015d0 (diff)
downloadegawk-4cd5e81481d79644fbaee082116ada10da1df1ca.tar.gz
egawk-4cd5e81481d79644fbaee082116ada10da1df1ca.tar.bz2
egawk-4cd5e81481d79644fbaee082116ada10da1df1ca.zip
Merge branch 'gawk-4.1-stable'
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;