Files
pkgsrc-ng/net/portmap/patches/patch-ab
2013-09-26 17:14:40 +02:00

30 lines
649 B
Plaintext

$NetBSD: patch-ab,v 1.1.1.1 2008/03/07 23:40:06 reed Exp $
--- portmap.c.orig 2003-03-19 23:42:46.000000000 -0800
+++ portmap.c 2003-03-19 23:44:06.000000000 -0800
@@ -85,6 +85,7 @@
#include <stdio.h>
#include <syslog.h>
#include <netdb.h>
+#include <errno.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
@@ -124,7 +125,6 @@
static void callit();
struct pmaplist *pmaplist;
int debugging = 0;
-extern int errno;
#include "pmap_check.h"
@@ -235,7 +235,7 @@
/* need to override perror calls in rpc library */
void
perror(what)
- const char *what;
+ __const char *what;
{
syslog(LOG_ERR, "%s: %m", what);