summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-07-30 23:26:33 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-07-30 23:28:07 -0400
commit2e0f87c8a5df45ddb4b93bac4e01584c7897ca2b (patch)
treec24616c415c11355582dde9f12e78c0eb31ad3be
parent6def094c235f45e3f14daf91195f856dc3f074ff (diff)
downloadlighttpd1.4-2e0f87c8a5df45ddb4b93bac4e01584c7897ca2b.tar.gz
lighttpd1.4-2e0f87c8a5df45ddb4b93bac4e01584c7897ca2b.zip
[core] add missing #include
(quiet compiler warning)
-rw-r--r--src/mod_authn_mysql.c3
-rw-r--r--src/mod_deflate.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mod_authn_mysql.c b/src/mod_authn_mysql.c
index 25e66d38..4a287117 100644
--- a/src/mod_authn_mysql.c
+++ b/src/mod_authn_mysql.c
@@ -30,6 +30,9 @@
#include <stdio.h>
#include <string.h>
+#if defined(HAVE_CRYPT_R) || defined(HAVE_CRYPT)
+#include <unistd.h> /* crypt() */
+#endif
#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
diff --git a/src/mod_deflate.c b/src/mod_deflate.c
index 45cb6b1a..0640ec0b 100644
--- a/src/mod_deflate.c
+++ b/src/mod_deflate.c
@@ -107,6 +107,7 @@
#include <string.h>
#include <errno.h>
#include <time.h>
+#include <unistd.h> /* read() */
#include "base.h"
#include "fdevent.h"