pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/x11/kdebase3 Fix build on Solaris (doesn't have SIOCGI...
details: https://anonhg.NetBSD.org/pkgsrc/rev/eb31bbdbd880
branches: trunk
changeset: 511871:eb31bbdbd880
user: markd <markd%pkgsrc.org@localhost>
date: Mon Apr 24 22:16:14 2006 +0000
description:
Fix build on Solaris (doesn't have SIOCGIFHWADDR)
diffstat:
x11/kdebase3/distinfo | 3 ++-
x11/kdebase3/patches/patch-ao | 30 ++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletions(-)
diffs (51 lines):
diff -r 89fd1d23953b -r eb31bbdbd880 x11/kdebase3/distinfo
--- a/x11/kdebase3/distinfo Mon Apr 24 22:05:13 2006 +0000
+++ b/x11/kdebase3/distinfo Mon Apr 24 22:16:14 2006 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.82 2006/03/30 02:39:39 markd Exp $
+$NetBSD: distinfo,v 1.83 2006/04/24 22:16:14 markd Exp $
SHA1 (kdebase-3.5.2.tar.bz2) = 16cddd8766c3bd8821044fe9cce66f5291c8412b
RMD160 (kdebase-3.5.2.tar.bz2) = 216ff59c49bb4fee2aa3b7d976ec40a8cccff107
@@ -23,6 +23,7 @@
SHA1 (patch-al) = 555384dc03ab59845e5794e081dd5d1a92e2959e
SHA1 (patch-am) = 07ed2a5717a8f72bc36906ef4fafc360ac63479c
SHA1 (patch-an) = e1620c558d300db98580109e64ee44a63571e5f7
+SHA1 (patch-ao) = 78caab47eececf32ba928d646ca5c8fcc0bb13fc
SHA1 (patch-bb) = 4c85002b95661db18619283e50512f3ab131a0ba
SHA1 (patch-bc) = fd7e784b584763b7351dbdaefda58443bd1aaadb
SHA1 (patch-bx) = d58d16fd484fc0a46c1ae93267af19e73af6f990
diff -r 89fd1d23953b -r eb31bbdbd880 x11/kdebase3/patches/patch-ao
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/kdebase3/patches/patch-ao Mon Apr 24 22:16:14 2006 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-ao,v 1.9 2006/04/24 22:16:14 markd Exp $
+
+--- kcontrol/nics/nic.cpp.orig 2006-04-17 14:30:47.642462000 +1200
++++ kcontrol/nics/nic.cpp
+@@ -215,6 +215,7 @@ NICList* findNICs()
+ tmp->netmask=i18n("Unknown");
+
+ ifcopy=*ifr;
++#ifdef SIOCGIFHWADDR
+ result=ioctl(sockfd,SIOCGIFHWADDR,&ifcopy);
+ if (result==0)
+ {
+@@ -222,6 +223,17 @@ NICList* findNICs()
+ tmp->HWaddr = HWaddr2String(n);
+ }
+ else
++#else
++#ifdef SIOCGENADDR
++ result=ioctl(sockfd,SIOCGENADDR,&ifcopy);
++ if (result==0)
++ {
++ char *n = &ifcopy.ifr_ifru.ifru_enaddr[0];
++ tmp->HWaddr = HWaddr2String(n);
++ }
++ else
++#endif
++#endif
+ tmp->HWaddr = i18n("Unknown");
+
+ nl->append(tmp);
Home |
Main Index |
Thread Index |
Old Index