freebsd-ports/mail/pgpsendmail/files/patch-keylist.c
Martin Wilke a0d9dff4cb - Fix build with clang
- Support PLIST_FILES
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Trim header

PR:		175046
Submitted by:	ports fury
2013-02-07 14:42:20 +00:00

32 lines
833 B
C

--- 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 )