Broken change to lib/interfaces.c in last night's 2_2 CVS - Fix Enclosed

Richard Bollinger rabollinger at attbi.com
Tue Jun 4 07:46:02 GMT 2002


Here's the error on Solaris

Compiling lib/interfaces.c
"lib/interfaces.c", line 112: undefined symbol: SIOCGIFCONF
"lib/interfaces.c", line 123: undefined symbol: SIOCGIFADDR
"lib/interfaces.c", line 130: undefined symbol: SIOCGIFFLAGS
"lib/interfaces.c", line 138: undefined symbol: SIOCGIFNETMASK

Problem is that there are ifdef tests depending on the contents of config.h before it's included.
This patch moves up that include to the beginning:

--- ../source/lib/interfaces.c Tue Jun  4 07:46:46 2002
+++ ./lib/interfaces.c Tue Jun  4 10:02:49 2002
@@ -31,6 +31,7 @@

 */

+#include "config.h"
 #include <unistd.h>
 #include <stdio.h>
 #include <sys/types.h>
@@ -57,7 +58,6 @@
  struct in_addr netmask;
 };
 #else
-#include "config.h"
 #include "interfaces.h"
 #endif


Rich Bollinger, Elliott Company





More information about the samba-technical mailing list