diff options
author | root <root@rshg054.dnsready.net> | 2011-08-07 23:14:33 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-07 23:14:33 +0000 |
commit | 0f9e4ba23bb6296d8bb8010f70d868fd08db9c54 (patch) | |
tree | ddd4394d1c62e9831f05238ff56a70da01f6c5c0 /extra/cyrus-sasl/0012_xopen_crypt_prototype.patch | |
parent | 7f2d7bd11daf0c654d4147cb91f9913bc587c276 (diff) |
Sun Aug 7 23:14:33 UTC 2011
Diffstat (limited to 'extra/cyrus-sasl/0012_xopen_crypt_prototype.patch')
-rw-r--r-- | extra/cyrus-sasl/0012_xopen_crypt_prototype.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/cyrus-sasl/0012_xopen_crypt_prototype.patch b/extra/cyrus-sasl/0012_xopen_crypt_prototype.patch new file mode 100644 index 000000000..d50ec8343 --- /dev/null +++ b/extra/cyrus-sasl/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 */ |