aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_config.h
diff options
context:
space:
mode:
authorPiotr Sikora <piotr@aviatrix.com>2025-02-12 10:40:58 +0200
committerRoman Arutyunyan <arutyunyan.roman@gmail.com>2025-02-18 16:18:10 +0300
commit9a4090f02ab438c47178b3b5a4c15a3c769d5027 (patch)
tree8e2a409fa355f7c3c0100edafd05a33e9aaf84bc /src/os/unix/ngx_linux_config.h
parentf274b3f72fa9aa3b2ed9b32817ed4a88eb2256b3 (diff)
downloadnginx-9a4090f02ab438c47178b3b5a4c15a3c769d5027.tar.gz
nginx-9a4090f02ab438c47178b3b5a4c15a3c769d5027.zip
Core: fix build without libcrypt.
libcrypt is no longer part of glibc, so it might not be available. Signed-off-by: Piotr Sikora <piotr@aviatrix.com>
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r--src/os/unix/ngx_linux_config.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
index 88fef47ce..d99358c93 100644
--- a/src/os/unix/ngx_linux_config.h
+++ b/src/os/unix/ngx_linux_config.h
@@ -52,7 +52,6 @@
#include <malloc.h> /* memalign() */
#include <limits.h> /* IOV_MAX */
#include <sys/ioctl.h>
-#include <crypt.h>
#include <sys/utsname.h> /* uname() */
#include <dlfcn.h>
@@ -61,6 +60,11 @@
#include <ngx_auto_config.h>
+#if (NGX_HAVE_CRYPT_H)
+#include <crypt.h>
+#endif
+
+
#if (NGX_HAVE_POSIX_SEM)
#include <semaphore.h>
#endif