[Toybox] [PATCH] ifconfig FTBFS here-needs sys/un.h

Isaac Dunham idunham at lavabit.com
Sun Apr 21 16:56:03 PDT 2013


Hello,
I did make allyesconfig; make (to test ifconfig) and get this:

Compile toybox...
toys/pending/ifconfig.c: In function 'is_host_unix':
toys/pending/ifconfig.c:121: error: invalid application of 'sizeof' to incomplete type 'struct sockaddr_un' 
toys/pending/ifconfig.c:124: error: dereferencing pointer to incomplete type
toys/pending/ifconfig.c:124: error: dereferencing pointer to incomplete type
toys/pending/ifconfig.c: In function 'address_to_name':
toys/pending/ifconfig.c:273: error: dereferencing pointer to incomplete type
toys/pending/ifconfig.c:273: error: dereferencing pointer to incomplete type

This struct is specified by POSIX to be in <sys/un.h>, so here's the fix.
Compile tested on glibc and musl (though musl also misses IPPROTO_TCP in nbd_client.c)

-- 
Isaac Dunham <idunham at lavabit.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ifconfig-build.diff
Type: text/x-diff
Size: 309 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20130421/c21607de/attachment-0006.diff>


More information about the Toybox mailing list