summaryrefslogtreecommitdiffstats
path: root/openbsd-compat/glob.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-02-17 12:51:36 +0100
committerDarren Tucker <dtucker@dtucker.net>2020-02-17 12:51:36 +0100
commit290c994336a2cfe03c5496bebb6580863f94b232 (patch)
tree2873ced250e56bf761a1ae908b309de87cb7e7c7 /openbsd-compat/glob.c
parentPrevent unused variable warning. (diff)
downloadopenssh-290c994336a2cfe03c5496bebb6580863f94b232.tar.xz
openssh-290c994336a2cfe03c5496bebb6580863f94b232.zip
Check if TILDE is already defined and undef.
Prevents redefinition warning on AIX.
Diffstat (limited to 'openbsd-compat/glob.c')
-rw-r--r--openbsd-compat/glob.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
index 1e346a8f6..9dcc4442f 100644
--- a/openbsd-compat/glob.c
+++ b/openbsd-compat/glob.c
@@ -83,6 +83,10 @@
#include "charclass.h"
+#ifdef TILDE
+# undef TILDE
+#endif
+
#define DOLLAR '$'
#define DOT '.'
#define EOS '\0'