summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2020-02-17 22:51:36 +1100
committerDarren Tucker <dtucker@dtucker.net>2020-02-17 22:51:36 +1100
commit290c994336a2cfe03c5496bebb6580863f94b232 (patch)
tree2873ced250e56bf761a1ae908b309de87cb7e7c7 /openbsd-compat
parent41a2e64ae480eda73ee0e809bbe743d203890938 (diff)
Check if TILDE is already defined and undef.
Prevents redefinition warning on AIX.
Diffstat (limited to 'openbsd-compat')
-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 @@
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'