diff options
author | Darren Tucker <dtucker@dtucker.net> | 2020-02-17 22:51:36 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2020-02-17 22:51:36 +1100 |
commit | 290c994336a2cfe03c5496bebb6580863f94b232 (patch) | |
tree | 2873ced250e56bf761a1ae908b309de87cb7e7c7 | |
parent | 41a2e64ae480eda73ee0e809bbe743d203890938 (diff) |
Check if TILDE is already defined and undef.
Prevents redefinition warning on AIX.
-rw-r--r-- | openbsd-compat/glob.c | 4 |
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 @@ | |||
83 | 83 | ||
84 | #include "charclass.h" | 84 | #include "charclass.h" |
85 | 85 | ||
86 | #ifdef TILDE | ||
87 | # undef TILDE | ||
88 | #endif | ||
89 | |||
86 | #define DOLLAR '$' | 90 | #define DOLLAR '$' |
87 | #define DOT '.' | 91 | #define DOT '.' |
88 | #define EOS '\0' | 92 | #define EOS '\0' |