i,
in src/os/unix/ngx_linux_config.h you assume that linux always has crypt_r().
It is not true, only glibc has crypt_r.
I attach a patch that add an auto/feature check to find when you have crypt_t
function.
The patch work also on 0.7.43 version
-- Timothy `Drizzt` Redaelli FreeSBIE Developer, Gentoo Developer, GUFI Staff There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence. -- Jeremy S. Anderson
--- nginx-0.7.42.orig/auto/os/linux
+++ nginx-0.7.42/auto/os/linux
@@ -121,3 +121,14 @@
ngx_feature_test="long mask = 0;
sched_setaffinity(0, 32, (cpu_set_t *) &mask)"
. auto/feature
+
+# crypt_r()
+
+ngx_feature="crypt_r()"
+ngx_feature_name="NGX_HAVE_GNU_CRYPT_R"
+ngx_feature_run=no
+ngx_feature_incs="#include <crypt.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="struct crypt_data cd;"
+. auto/feature
--- nginx-0.7.42.orig/src/os/unix/ngx_linux_config.h
+++ nginx-0.7.42/src/os/unix/ngx_linux_config.h
@@ -94,11 +94,6 @@
#endif
-#ifndef NGX_HAVE_GNU_CRYPT_R
-#define NGX_HAVE_GNU_CRYPT_R 1
-#endif
-
-
#ifndef NGX_HAVE_INHERITED_NONBLOCK
#define NGX_HAVE_INHERITED_NONBLOCK 0
#endif
Edited 1 time(s). Last edit at 03/20/2009 12:05PM by Jim Ohlstein.
Attachments:
open |
download -
nginx-0.7.39-uclibc.patch
(774 bytes)