[master] eaa4fdb Get the vsl_glob_test to run on SunOS.

Geoff Simmons geoff at uplex.de
Mon Oct 23 16:17:06 UTC 2017


commit eaa4fdbeabc85abafc1333493971ef55e715b10a
Author: Geoff Simmons <geoff at uplex.de>
Date:   Mon Oct 23 18:15:06 2017 +0200

    Get the vsl_glob_test to run on SunOS.
    
    fnmatch(3) appears to know FNM_IGNORECASE but not FNM_CASEFOLD.

diff --git a/lib/libvarnishapi/vsl_glob_test.c b/lib/libvarnishapi/vsl_glob_test.c
index e4f62a9..ca0b901 100644
--- a/lib/libvarnishapi/vsl_glob_test.c
+++ b/lib/libvarnishapi/vsl_glob_test.c
@@ -40,6 +40,10 @@
 #include "vdef.h"
 #include "vas.h"
 
+#ifndef FNM_CASEFOLD
+#define FNM_CASEFOLD FNM_IGNORECASE
+#endif
+
 static void
 cb(int tag, void *priv)
 {


More information about the varnish-commit mailing list