pkgsrc/net/nocol/patches/patch-ap
2016-03-13 09:06:01 +00:00

34 lines
730 B
Text

$NetBSD: patch-ap,v 1.3 2016/03/13 09:06:01 dholland Exp $
- use standard headers
- don't declare own errno
--- tpmon/tpmon.c.orig 1998-07-31 18:35:34.000000000 +0000
+++ tpmon/tpmon.c
@@ -30,13 +30,17 @@
#include <sys/types.h>
#include <sys/param.h>
#include <sys/socket.h>
-#include <sys/errno.h>
+#include <string.h>
+#include <arpa/inet.h>
+#include <errno.h>
#include <time.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <netdb.h>
#ifndef NeXT
# include <unistd.h>
@@ -47,7 +51,6 @@
#include "osdefs.h" /* definition of RAND */
extern char *prognm;
-extern int errno;
static int stoptest; /* flag used by signal handler */
/*