[uClibc]bridge-utils
Erik Andersen
andersen at codepoet.org
Tue Sep 17 17:54:01 UTC 2002
On Tue Sep 17, 2002 at 11:26:52AM -0700, Matthew Winther wrote:
> So are there any suggestions as to a quick fix or this. Or is it time
> to start hacking start hacking the internals of bridge-utils?
I just took a quick look at the source. It seems to be trying to
use __libc_lock_lock(). I can't understand _why_ though since
the app does not use threads. Well libbridge_compat.c defines
__libc_lock_lock() as nothing. So the obvious fix is
--- bridge-utils-0.9.5/libbridge/if_index.c.orig
+++ bridge-utils-0.9.5/libbridge/if_index.c
@@ -24,7 +24,6 @@
#include <net/if.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
-#include <bits/libc-lock.h>
/* Try to get a socket to talk to the kernel. */
#if defined SIOCGIFINDEX || defined SIOCGIFNAME
and it will then compile perfectly. Feel free to send the
fix upsteam, as this line is just obviously wrong.
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list