Thread (6 messages) flat view 6 messages, 2 authors, 2016-06-15
STALE3717d

[PATCH 2/2] Include unistd.h.

From: <hidden>
Date: 2016-06-15 22:51:19
Subsystem: the rest · Maintainer: Linus Torvalds

At least on Interix, NULL is defined in unistd.h, and not including it
causes compilation failure.

Signed-off-by: Markus Duft <redacted>
---
 compat/fnmatch/fnmatch.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/compat/fnmatch/fnmatch.c b/compat/fnmatch/fnmatch.c
index 14feac7..0238cca 100644
--- a/compat/fnmatch/fnmatch.c
+++ b/compat/fnmatch/fnmatch.c
@@ -25,6 +25,7 @@
 # define _GNU_SOURCE	1
 #endif
 
+#include <unistd.h>
 #include <errno.h>
 #include <fnmatch.h>
 #include <ctype.h>
-- 
1.7.3.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help