From 3f60b6ccc298f1eddac0ce917712d84212e015d0 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 2 Aug 2013 17:48:59 -0400 Subject: Minor improvement for Windows in filefuncs.c. --- extension/filefuncs.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'extension/filefuncs.c') 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; -- cgit v1.2.3