summaryrefslogtreecommitdiffstats
path: root/scp.c
diff options
context:
space:
mode:
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scp.c b/scp.c
index 8ff7180b3..682d062ff 100644
--- a/scp.c
+++ b/scp.c
@@ -97,7 +97,11 @@
#ifdef HAVE_FNMATCH_H
#include <fnmatch.h>
#endif
-#include <glob.h>
+#ifdef USE_SYSTEM_GLOB
+# include <glob.h>
+#else
+# include "openbsd-compat/glob.h"
+#endif
#ifdef HAVE_LIBGEN_H
#include <libgen.h>
#endif