handle sstem (sco 3) with glob but not glob.h
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index 8b36474..6e0fbab 100644 (file)
--- a/util.c
+++ b/util.c
@@ -427,7 +427,7 @@ int lock_range(int fd, int offset, int len)
 
 static void glob_expand_one(char *s, char **argv, int *argc, int maxargs)
 {
-#ifndef HAVE_GLOB
+#if !(defined(HAVE_GLOB) && defined(HAVE_GLOB_H))
        if (!*s) s = ".";
        argv[*argc] = strdup(s);
        (*argc)++;