[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/nics
From: Thiago Macieira <thiagom () mail ! com>
Date: 2003-11-15 22:01:05
[Download RAW message or body]
CVS commit by thiago:
Applying patch proposed by Matthias Lechner.
As I explained on kde-devel, it would seem someone looked at my code
in kdelibs/kdecore/ksockaddr.cpp which tests for HAVE_SOCKADDR_SA_LEN.
But the related test in configure.in.in was updated on July 7th, without
changing the #define'd constant.
ksockaddr.cpp requires a similar change.
CCMAIL: matthias@lmme.de
M +3 -3 nic.cpp 1.24
--- kdebase/kcontrol/nics/nic.cpp #1.23:1.24
@@ -55,5 +55,5 @@
#include <sys/ioctl.h>
-#ifndef HAVE_SOCKADDR_SA_LEN
+#ifndef HAVE_STRUCT_SOCKADDR_SA_LEN
#undef HAVE_GETNAMEINFO
#undef HAVE_GETIFADDRS
@@ -151,5 +151,5 @@ NICList* findNICs()
struct ifreq *ifr =(struct ifreq *) ptr;
int len = sizeof(struct sockaddr);
-#ifdef HAVE_SOCKADDR_SA_LEN
+#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
if (ifr->ifr_addr.sa_len > len)
len = ifr->ifr_addr.sa_len; /* length > 16 */
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic