[BACK]Return to patch-sponge.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / misc / moreutils / patches

File: [cvs.NetBSD.org] / pkgsrc / misc / moreutils / patches / patch-sponge.c (download)

Revision 1.1, Sat Sep 29 21:33:47 2018 UTC (2 years, 2 months ago) by wiedi
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, HEAD

moreutils: fix build on SunOS

$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