[BACK]Return to patch-ak CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / benchmarks / netperf / patches

File: [cvs.NetBSD.org] / pkgsrc / benchmarks / netperf / patches / patch-ak (download)

Revision 1.4, Wed Mar 30 13:24:12 2016 UTC (6 years, 10 months ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, 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, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, HEAD
Changes since 1.3: +15 -3 lines

Fix build on SunOS.

$NetBSD: patch-ak,v 1.4 2016/03/30 13:24:12 jperkin Exp $

Needs sys/sendfile.h on SunOS.

--- src/netlib.c.orig	2015-04-24 22:08:33.000000000 +0000
+++ src/netlib.c
@@ -143,6 +143,9 @@ char    netlib_id[]="\
 #endif /* __sgi */
 #endif /* _AIX */
 
+#ifdef __sun
+#include <sys/sendfile.h>
+#endif
 
 #ifdef HAVE_MPCTL
 #include <sys/mpctl.h>
@@ -254,6 +257,7 @@ union   netperf_request_struct  netperf_
 union   netperf_response_struct netperf_response;
 
 FILE    *where;
+int     fd = -1;
 
 char    libfmt = '?';