On Son, 2008-09-07 at 22:21 +0200, Kaplan L. Aaron wrote:
> build break in os x:
> 
> src/bsd/kernel_routes.c: In function 'add_del_route':
> src/bsd/kernel_routes.c:115: warning: implicit declaration of  
> function 'getpid'
> src/bsd/kernel_routes.c:115: warning: nested extern declaration of  
> 'getpid'
> src/bsd/kernel_routes.c:225: warning: implicit declaration of  
> function 'write'
> src/bsd/kernel_routes.c:225: warning: nested extern declaration of  
> 'write'
> /opt/local/bin/ccache gcc -Wall -Wextra -Wold-style-definition - 
> Wdeclaration-after-statement -Wmissing-prototypes -Wstrict-prototypes  
> -Wmissing-declarations -Wsign-compare -Waggregate-return -Wmissing- 
> noreturn -Wmissing-format-attribute -Wno-multichar -Wno-deprecated- 
> declarations -Wendif-labels -Wwrite-strings -Wbad-function-cast - 
> Wpointer-arith -Wcast-qual -Wnested-externs -Winline -Wdisabled- 
> optimization -funit-at-a-time -finline-limit=350   -ggdb -Isrc   - 
> DUSE_FPM -D__MacOSX__ -DDEBUG    -c -o src/bsd/net.o src/bsd/net.c
> In file included from src/bsd/net.c:44:
> src/bsd/../net_os.h:78: warning: 'struct timeval' declared inside  
> parameter list
> src/bsd/../net_os.h:78: warning: its scope is only this definition or  
> declaration, which is probably not what you want
> src/bsd/net.c: In function 'get_ipv6_address':
> src/bsd/net.c:558: warning: implicit declaration of function 'strscpy'
> src/bsd/net.c:558: warning: nested extern declaration of 'strscpy'
> src/bsd/net.c: At top level:
> src/bsd/net.c:791: error: conflicting types for 'olsr_select'
> src/bsd/../net_os.h:78: error: previous declaration of 'olsr_select'  
> was here
> make: *** [src/bsd/net.o] Error 1
> stabil:~/olsrd-current/olsrd aaron$

IMHO the just pushed "#include <unistd.h>" should fix it.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



