Skip to content

Commit

Permalink
Fix build on SunOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
jperkin committed Apr 18, 2016
1 parent df64451 commit 8cb5cdc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 2 additions & 2 deletions net/gnome-netstatus/distinfo
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.13 2015/11/04 00:35:02 agc Exp $
$NetBSD: distinfo,v 1.14 2016/04/18 11:41:50 jperkin Exp $

SHA1 (gnome-netstatus-2.26.0.tar.bz2) = 53ca180d45a42b011ae6765461ae55c6a69d66af
RMD160 (gnome-netstatus-2.26.0.tar.bz2) = 5cf01deb990c503d9691e514cc7bd3ca5d4b00f9
SHA512 (gnome-netstatus-2.26.0.tar.bz2) = 359fd6145e12dd3b2689ce127690854b8e41f5ce18f9fd076cf3f49f993b3219a3894bf58d1be89387fbfb452131f8c03929654fb80a5d1d54c875e2d0b48623
Size (gnome-netstatus-2.26.0.tar.bz2) = 552061 bytes
SHA1 (patch-aa) = cab8588a081191ee59c9f16f6481aa330331e38d
SHA1 (patch-aa) = b9ce88e76e52aea18e13718b979de185d2d01e6d
15 changes: 13 additions & 2 deletions net/gnome-netstatus/patches/patch-aa
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
$NetBSD: patch-aa,v 1.4 2015/12/29 04:04:29 dholland Exp $
$NetBSD: patch-aa,v 1.5 2016/04/18 11:41:50 jperkin Exp $

--- src/netstatus-iface.c.orig 2007-02-13 10:39:19.000000000 +0100
Don't use SIOCGIFHWADDR on SunOS.

--- src/netstatus-iface.c.orig 2009-03-08 05:25:52.000000000 +0000
+++ src/netstatus-iface.c
@@ -1024,7 +1024,7 @@ netstatus_iface_get_hw_details (Netstatu
char **hw_addr)

{
-#ifdef SIOCGIFHWADDR
+#if defined(SIOCGIFHWADDR) && !defined(__sun)
static struct HwType *hw_type = NULL;
struct ifreq if_req;
int fd;
@@ -1121,12 +1121,6 @@ netstatus_iface_get_device_details (Nets
return TRUE;
}
Expand Down

0 comments on commit 8cb5cdc

Please sign in to comment.