[BACK]Return to patch-src_network.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / ham / hamlib / patches

File: [cvs.NetBSD.org] / pkgsrc / ham / hamlib / patches / patch-src_network.c (download)

Revision 1.1, Tue Jun 12 12:40:02 2018 UTC (2 years, 8 months ago) by wiedi
Branch: MAIN
CVS Tags: 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, HEAD

hamlib: fix build on SunOS

$NetBSD: patch-src_network.c,v 1.1 2018/06/12 12:40:02 wiedi Exp $

Add include for FIONREAD on SunOS
--- src/network.c.orig	2018-03-31 13:12:24.000000000 +0000
+++ src/network.c
@@ -45,6 +45,10 @@
 #include <sys/types.h>
 #include <signal.h>
 
+#if defined(__sun)
+#include <sys/filio.h>
+#endif
+
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif