Jürg Billeter wrote:

Short preliminary report after rebuilding the base system (about 240
packages). Following problems found so far:


<snip>

Looking very promising! :-)

- iproute2: Uses linux/if.h and linux/ip.h instead of net/if.h and
netinet/ip.h.

- nmap: Uses linux/if.h instead of net/if.h.

- openssh: do.

- ifplugd: similar

- ifmetric: similar


<snip>

Jürg. I haven't really looked into it, other than a grep through glibc source, but would it be acceptable to replace these headers with something like the following (example taken from llh linux/socket.h):

----------------------------include/linux/if.h-------------------------
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#warning "You should include <net/if.h>. This time I will do it for you."
#endif
#include <net/if.h>
-----------------------------------------------------------------------
and
----------------------------include/linux/ip.h-------------------------
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
#warning "You should include <netinet/ip.h>. This time I will do it for you."
#endif
#include <netinet/ip.h>
------------------------------------------------------------------------

Or are they actually _needed_ by any known userspace apps? Ther may wind up being several that can be 'fixed' that way. BTW, LLH uses this method for the following files (all linux/* warning lines wrapped in an ifdef for glibc and strict ansi):

linux/acct.h - sys/acct.h
linux/resource.h - sys/resource.h
linux/signal.h - signal.h
linux/socket.h - sys/socket.h
linux/time.h - sys/time.h
linux/un.h - sys/un.h
linux/utime.h - utime.h
linux/wait.h - sys/wait.h
asm-*/io.h - sys/io.h

-- DJ Lucas
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to