summaryrefslogtreecommitdiff
path: root/misc/moreutils/patches/patch-sponge.c
blob: e8b3074dca0e50950a711b06b958204dd15045c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-sponge.c,v 1.1 2018/09/29 21:33:47 wiedi Exp $

Need MAX() on SunOS

--- sponge.c.orig	2017-12-31 16:02:11.000000000 +0000
+++ sponge.c
@@ -36,6 +36,10 @@
 #include <signal.h>
 #include <getopt.h>
 
+#if !defined(MAX)
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#endif
+
 #include "physmem.c"
 
 #define BUFF_SIZE           8192