summaryrefslogtreecommitdiff
path: root/compat/fnmatch/fnmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/fnmatch/fnmatch.c')
-rw-r--r--compat/fnmatch/fnmatch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c
index 14feac7..9473aed 100644
--- a/compat/fnmatch/fnmatch.c
+++ b/compat/fnmatch/fnmatch.c
@@ -127,6 +127,10 @@ extern char *getenv ();
extern int errno;
# endif
+# ifndef NULL
+# define NULL 0
+# endif
+
/* This function doesn't exist on most systems. */
# if !defined HAVE___STRCHRNUL && !defined _LIBC