diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 16:04:17 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 16:04:17 (GMT) |
commit | 927e681145873e5045d07c9b7bb97f98e662040d (patch) | |
tree | 168eabeb632c9922c5e281436bc0967fea7f8304 /abs/core/libsasl/0012_xopen_crypt_prototype.patch | |
parent | 9b52b29dd1f40f1fffea8fe268ab833c2db8b293 (diff) | |
download | linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.zip linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.tar.gz linhes_pkgbuild-927e681145873e5045d07c9b7bb97f98e662040d.tar.bz2 |
libsasl 2.1.23
Diffstat (limited to 'abs/core/libsasl/0012_xopen_crypt_prototype.patch')
-rw-r--r-- | abs/core/libsasl/0012_xopen_crypt_prototype.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/abs/core/libsasl/0012_xopen_crypt_prototype.patch b/abs/core/libsasl/0012_xopen_crypt_prototype.patch new file mode 100644 index 0000000..d50ec83 --- /dev/null +++ b/abs/core/libsasl/0012_xopen_crypt_prototype.patch @@ -0,0 +1,20 @@ +0012_xopen_crypt_prototype.dpatch by <dannf@debian.org> + +When _XOPEN_SOURCE is defined, the subsequent #include <unistd.h> +will define a correct function prototype for the crypt function. +This avoids segfaults on architectures where the size of a pointer +is greater than the size of an integer (ia64 and amd64 are examples). +This may be detected by looking for build log lines such as the +following: +auth_shadow.c:183: warning: implicit declaration of function ‘crypt’ +auth_shadow.c:183: warning: cast to pointer from integer of different +size + +diff -urNad trunk~/saslauthd/auth_shadow.c trunk/saslauthd/auth_shadow.c +--- trunk~/saslauthd/auth_shadow.c 2006-05-29 22:52:42.000000000 +0300 ++++ trunk/saslauthd/auth_shadow.c 2006-11-08 13:44:23.000000000 +0200 +@@ -1,3 +1,4 @@ ++#define _XOPEN_SOURCE + #define PWBUFSZ 256 /***SWB***/ + + /* MODULE: auth_shadow */ |