Welcome! Log In Create A New Profile

Advanced

[PATCH] uclibc does not have crypt_r

All files from this thread

File Name File Size   Posted by Date  
nginx-0.7.39-uclibc.patch 774 bytes open | download Timothy Redaelli 03/20/2009 Read message
Timothy Redaelli
March 18, 2009 01:58PM
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)
Subject Author Posted

[PATCH] uclibc does not have crypt_r Attachments

Timothy Redaelli March 18, 2009 01:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 55
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready