summaryrefslogtreecommitdiff
path: root/src/mod_authn_file.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-05-08 18:44:25 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-05-08 18:44:25 -0400
commit7a15bfcf041063b4fa35ecbf1cb2862d6907dd78 (patch)
treeea4cd430ddeb1e08ac93d2c07ddd8d1cb75143e1 /src/mod_authn_file.c
parent22e8f600f5388ac7dda5855f2bea6e04c7c7d807 (diff)
downloadlighttpd-git-7a15bfcf041063b4fa35ecbf1cb2862d6907dd78.tar.gz
[mod_auth] include unistd.h for crypt() on *nix
(needed by *BSD in addition to Mac OS)
Diffstat (limited to 'src/mod_authn_file.c')
-rw-r--r--src/mod_authn_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_authn_file.c b/src/mod_authn_file.c
index c8536bac..8d17cf75 100644
--- a/src/mod_authn_file.c
+++ b/src/mod_authn_file.c
@@ -7,7 +7,7 @@
#elif defined(__linux__)
/* linux needs _XOPEN_SOURCE */
# define _XOPEN_SOURCE
-#elif defined(__APPLE__) && defined(__MACH__)
+#elif !defined(_MSC_VER)
#include <unistd.h>
#endif