aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-17 07:29:48 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-17 10:48:49 +0200
commit2e8f2f03e794144701a0e391b9d582cda224ba1b (patch)
treed1bf43209e48ddb713054735dfccce3c3eced8e2 /src/config.c
parent983d1189d08436ba818b591d7a0185927758349c (diff)
downloadlibssh-2e8f2f03e794144701a0e391b9d582cda224ba1b.tar.gz
libssh-2e8f2f03e794144701a0e391b9d582cda224ba1b.tar.xz
libssh-2e8f2f03e794144701a0e391b9d582cda224ba1b.zip
cmake: Correctly detect if glob has gl_flags member
Thanks to Baruch Siach. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c
index 537b3ba9..df6b48bf 100644
--- a/src/config.c
+++ b/src/config.c
@@ -347,7 +347,7 @@ static void local_parse_file(ssh_session session, const char *filename, int *par
return;
}
-#ifdef HAVE_GLOB
+#if defined(HAVE_GLOB) && defined(HAVE_GLOB_GL_FLAGS_MEMBER)
static void local_parse_glob(ssh_session session,
const char *fileglob,
int *parsing,
@@ -376,7 +376,7 @@ static void local_parse_glob(ssh_session session,
globfree(&globbuf);
}
-#endif /* HAVE_GLOB */
+#endif /* HAVE_GLOB HAVE_GLOB_GL_FLAGS_MEMBER */
static enum ssh_config_match_e
ssh_config_get_match_opcode(const char *keyword)