diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2013-02-07 14:42:20 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2013-02-07 14:42:20 +0000 |
commit | a0d9dff4cbee989c586a00618d750ea11e38697a (patch) | |
tree | d82742a0ded5253798bd3eb146c2b5e6c6100e66 /mail/pgpsendmail/files/patch-keylist.c | |
parent | - Fix build with clang (diff) |
- Fix build with clang
- Support PLIST_FILES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Trim header
PR: 175046
Submitted by: ports fury
Notes
Notes:
svn path=/head/; revision=311854
Diffstat (limited to 'mail/pgpsendmail/files/patch-keylist.c')
-rw-r--r-- | mail/pgpsendmail/files/patch-keylist.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/mail/pgpsendmail/files/patch-keylist.c b/mail/pgpsendmail/files/patch-keylist.c new file mode 100644 index 000000000000..bea02c511ddb --- /dev/null +++ b/mail/pgpsendmail/files/patch-keylist.c @@ -0,0 +1,32 @@ +--- keylist.c.orig 1994-10-16 02:31:05.000000000 +0900 ++++ keylist.c 2012-10-24 16:23:33.000000000 +0900 +@@ -49,6 +49,9 @@ + #include <errno.h> + #include <sys/types.h> + #include <sys/stat.h> ++#include <sys/wait.h> ++#include <ctype.h> ++#include <unistd.h> + #include <fcntl.h> + #include "pgpsendmail.h" + +@@ -74,7 +77,9 @@ + char txt[STRING_LENGTH]; + struct stat statbuf_list, statbuf_keyring; + ERRNO_TYPE errno; ++#if 0 + extern char *sys_errlist[]; ++#endif + static char *argv[] = {"pgp", "-kv", NULL}; + + (void) sprintf (listfile, "%s/.keylist", pgppath); +@@ -268,7 +273,9 @@ + FILE *in_fp; + char keyfile[STRING_LENGTH]; + ERRNO_TYPE errno; ++#if 0 + extern char *sys_errlist[]; ++#endif + + (void) sprintf (keyfile, "%s/mypubkey.asc", pgppath); + if ( ( in_fp = fopen (keyfile, "r") ) == NULL ) |