[BACK]Return to patch-cups_getifaddrs-internal.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / print / cups-base / patches

File: [cvs.NetBSD.org] / pkgsrc / print / cups-base / patches / Attic / patch-cups_getifaddrs-internal.h (download)

Revision 1.1, Tue May 26 08:36:56 2020 UTC (2 years, 8 months ago) by triaxx
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2

libcups: fix build failure on FreeBSD

pkgsrc changes:
---------------
  * Add conditional inclusion for FreeBSD.
  * Apply some changes to appease pkglint.
  * Bump revision.

$NetBSD: patch-cups_getifaddrs-internal.h,v 1.1 2020/05/26 08:36:56 triaxx Exp $

FreeBSD bug 182466 that still seems open:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=182466

--- cups/getifaddrs-internal.h.orig	2020-04-27 18:04:29.000000000 +0000
+++ cups/getifaddrs-internal.h
@@ -39,6 +39,9 @@ typedef int socklen_t;
 
 #  ifndef _WIN32
 #    include <net/if.h>
+#    if defined(__FreeBSD__)
+#      include <netinet/in.h>
+#    endif /* __FreeBSD */
 #    include <resolv.h>
 #    ifdef HAVE_GETIFADDRS
 #      include <ifaddrs.h>