openbsd-ports/benchmarks/netpipe/patches/patch-netpipe_h
jasper bd44d3026d - fix patch names, no binary change
- regen one other patch while here
2011-07-08 09:33:25 +00:00

25 lines
786 B
Plaintext

$OpenBSD: patch-netpipe_h,v 1.1 2011/07/08 09:33:25 jasper Exp $
--- netpipe.h.orig Tue Apr 27 22:55:57 1999
+++ netpipe.h Fri Jul 8 11:32:28 2011
@@ -20,6 +20,7 @@
#include <stdlib.h> /* malloc(3) */
#include <string.h>
#include <sys/types.h>
+#include <sys/param.h>
#include <sys/time.h> /* struct timeval */
#ifdef HAVE_GETRUSAGE
#include <sys/resource.h>
@@ -38,8 +39,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 */