opnsense-ports/mail/pgpsendmail/files/patch-misc.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

34 lines
736 B
C

--- misc.c.orig 1994-12-03 17:26:58.000000000 +0900
+++ misc.c 2012-10-24 16:04:53.000000000 +0900
@@ -39,8 +39,11 @@
*/
#include <stdio.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/uio.h>
+#include <unistd.h>
#include <fcntl.h>
#include "pgpsendmail.h"
@@ -64,7 +67,9 @@
int count = -1;
char buffer[BUF_SIZE];
ERRNO_TYPE errno;
+#if 0
extern char *sys_errlist[];
+#endif
while ( ( len = read (in_fd, buffer, BUF_SIZE) ) > 0 )
{
@@ -195,7 +200,9 @@
struct stat statbuf;
char buf[BUF_SIZE];
ERRNO_TYPE errno;
+#if 0
extern char *sys_errlist[];
+#endif
m_clear (buf, BUF_SIZE);
if ( ( fd = open (filename, O_RDWR, 0) ) < 0 )