openbsd-ports/benchmarks/netpipe/patches/patch-aa
brad 33092bd54a - move install target into netpipe's own Makefile
- make netpipe respect CC and CFLAGS
- improve patch-aa a bit
2000-01-23 03:29:56 +00:00

24 lines
693 B
Plaintext

--- netpipe.h.orig Wed Oct 28 09:42:43 1998
+++ netpipe.h Sat Jan 22 22:20:35 2000
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/time.h> /* struct timeval */
#include <stdlib.h> /* malloc(3) */
@@ -37,8 +38,12 @@
#define MAXINT 2147483647
#define ABS(x) (((x) < 0)?(-(x)):(x))
+#ifndef MIN
#define MIN(x,y) (((x) < (y))?(x):(y))
+#endif
+#ifndef MAX
#define MAX(x,y) (((x) > (y))?(x):(y))
+#endif
/* Need to include the protocol structure header file. */
/* Change this to reflect the protocol */