~cypheon/pkgsrc-wip

pkgsrc-wip/libepc/patches/patch-ab -rw-r--r-- 603 bytes
5f1bf4f5 — Johann Rudloff Subst PLIST paths for platform specific files for other architectures 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ab,v 1.2 2013/01/21 20:27:30 othyro Exp $

Run this block only if SIOCGIFINDEX is defined.

--- tests/framework.c.orig	2008-10-20 07:47:36.000000000 +0000
+++ tests/framework.c
@@ -188,6 +188,7 @@ epc_test_list_ifaces (void)
           continue;
         }
 
+#ifdef SIOCGIFINDEX
       if (ioctl (fd, SIOCGIFINDEX, req) < 0)
         {
           g_warning ("%s: ioctl(SIOCGIFINDEX): %s",
@@ -201,6 +202,7 @@ epc_test_list_ifaces (void)
       g_print ("%s: name=%s, ifidx=%u, \n",
                G_STRLOC, ifaces[j].name,
                ifaces[j].ifidx);
+#endif
 
       ++j;
     }