summaryrefslogtreecommitdiffstats
path: root/scp.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2021-08-04 03:05:11 +0200
committerDamien Miller <djm@mindrot.org>2021-08-04 03:05:11 +0200
commit6df1fecb5d3e51f3a8027a74885c3a44f6cbfcbd (patch)
treee193f4c1a943e7686f01b6019b7466c8574158a1 /scp.c
parentMissing space between macro arg and punctuation. (diff)
downloadopenssh-6df1fecb5d3e51f3a8027a74885c3a44f6cbfcbd.tar.xz
openssh-6df1fecb5d3e51f3a8027a74885c3a44f6cbfcbd.zip
use openbsd-compat glob.h is required
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