Tue Sep 23 13:55:00 2014 UTC ()
SunOS needs sys/types.h too.


(jperkin)
diff -r1.8 -r1.9 pkgsrc/benchmarks/netperf/distinfo
diff -r1.1 -r1.2 pkgsrc/benchmarks/netperf/patches/patch-src_dscp.c

cvs diff -r1.8 -r1.9 pkgsrc/benchmarks/netperf/distinfo (expand / switch to unified diff)

--- pkgsrc/benchmarks/netperf/distinfo 2014/04/23 20:19:18 1.8
+++ pkgsrc/benchmarks/netperf/distinfo 2014/09/23 13:55:00 1.9
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1$NetBSD: distinfo,v 1.8 2014/04/23 20:19:18 asau Exp $ 1$NetBSD: distinfo,v 1.9 2014/09/23 13:55:00 jperkin Exp $
2 2
3SHA1 (netperf-2.6.0.tar.bz2) = 3e1be4e7c3f7a838c4d5c00c6d20a619b320bfef 3SHA1 (netperf-2.6.0.tar.bz2) = 3e1be4e7c3f7a838c4d5c00c6d20a619b320bfef
4RMD160 (netperf-2.6.0.tar.bz2) = c3adf0b67e1d8e8a51c229910aa7347182991df2 4RMD160 (netperf-2.6.0.tar.bz2) = c3adf0b67e1d8e8a51c229910aa7347182991df2
5Size (netperf-2.6.0.tar.bz2) = 1032953 bytes 5Size (netperf-2.6.0.tar.bz2) = 1032953 bytes
6SHA1 (patch-ab) = 096eed1eccf6a2f7003898711384ed67019800d7 6SHA1 (patch-ab) = 096eed1eccf6a2f7003898711384ed67019800d7
7SHA1 (patch-ah) = b2ee5c6312ed987d6b796fa462dcc3557146580f 7SHA1 (patch-ah) = b2ee5c6312ed987d6b796fa462dcc3557146580f
8SHA1 (patch-ak) = 68628408979f164f2843bbe0eac0cb122af3b4fc 8SHA1 (patch-ak) = 68628408979f164f2843bbe0eac0cb122af3b4fc
9SHA1 (patch-src_dscp.c) = 9f0d224f4497b3b04cb1cf36bf52be77254e2624 9SHA1 (patch-src_dscp.c) = 2a0c91cc61b85b480b14674fd680c9809660c7b8

cvs diff -r1.1 -r1.2 pkgsrc/benchmarks/netperf/patches/patch-src_dscp.c (expand / switch to unified diff)

--- pkgsrc/benchmarks/netperf/patches/patch-src_dscp.c 2014/04/23 20:19:18 1.1
+++ pkgsrc/benchmarks/netperf/patches/patch-src_dscp.c 2014/09/23 13:55:00 1.2
@@ -1,14 +1,16 @@ @@ -1,14 +1,16 @@
1$NetBSD: patch-src_dscp.c,v 1.1 2014/04/23 20:19:18 asau Exp $ 1$NetBSD: patch-src_dscp.c,v 1.2 2014/09/23 13:55:00 jperkin Exp $
 2
 3SunOS needs sys/types.h.
2 4
3--- src/dscp.c.orig 2012-04-03 23:51:29.000000000 +0000 5--- src/dscp.c.orig 2012-04-03 23:51:29.000000000 +0000
4+++ src/dscp.c 6+++ src/dscp.c
5@@ -49,6 +49,9 @@ const char * iptos2str(int iptos); 7@@ -49,6 +49,9 @@ const char * iptos2str(int iptos);
6 * Definitions for IP type of service (ip_tos) 8 * Definitions for IP type of service (ip_tos)
7 */ 9 */
8  10
9+#if defined(__FreeBSD__) 11+#if defined(__FreeBSD__) || defined(__sun)
10+#include <sys/types.h> /* u_int16_t */ 12+#include <sys/types.h> /* u_int16_t */
11+#endif 13+#endif
12 #if HAVE_NETINET_IN_SYSTM_H 14 #if HAVE_NETINET_IN_SYSTM_H
13 #include <netinet/in_systm.h> 15 #include <netinet/in_systm.h>
14 #endif 16 #endif