[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kcontrol/nics
From:       Alex Zepeda <zipzippy () sonic ! net>
Date:       2003-07-07 6:29:10
[Download RAW message or body]

CVS commit by garbanzo: 

We need a check for the sa_len member here.  Otherwise the proper code 
won't be enabled on FreeBSD.


  M +18 -1     configure.in.in   1.2


--- kdebase/kcontrol/nics/configure.in.in  #1.1:1.2
@@ -1 +1,18 @@
-AC_CHECK_FUNCS(getifaddrs getnameinfo)
\ No newline at end of file
+AC_CHECK_FUNCS(getifaddrs getnameinfo)
+
+AC_MSG_CHECKING([if struct sockaddr has member sa_len])
+AC_TRY_COMPILE(
+  [
+    #include <sys/types.h>
+    #include <sys/socket.h>
+  ],
+  [
+    struct sockaddr sa;
+    sa.sa_len = sizeof(sa);
+  ],
+  [
+    AC_DEFINE(HAVE_SOCKADDR_SA_LEN,1,[Define if struct sockaddr has member sa_len])
+    AC_MSG_RESULT(yes)
+  ],
+  AC_MSG_RESULT(no)
+)
\ No newline at end of file


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic