summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/regex.c b/src/regex.c
index 31f188efa99..4c54a2f863b 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -196,9 +196,7 @@
even if config.h says that we can. */
# undef REL_ALLOC
-# ifdef HAVE_UNISTD_H
-# include <unistd.h>
-# endif
+# include <unistd.h>
/* When used in Emacs's lib-src, we need xmalloc and xrealloc. */