[BusyBox] Compiling busybox with newlib [PATCH]

Shaun Jackman sjackman at gmail.com
Thu Mar 3 16:55:18 MST 2005


newlib [1] is a libc common for embedded systems. Attached is a patch
to support compiling busybox using newlib. I've made an effort to make
the patch noninvasive; it shouldn't affect systems not using newlib.

Do the maintainers prefer inline patches or attached patches?

Cheers,
Shaun

[1] http://sources.redhat.com/newlib/

2005-03-03  Shaun Jackman  <sjackman at gmail.com>

	* include/busybox.h: Support newlib.
	* libbb/interface.c: Use net/ethernet.h instead of linux/if_ether.h.
	* libbb/loop.c: Do not use linux/version.h.
	* libbb/procps.c: Use sys/param.h instead of asm/page.h when possible.
	* libbb/syscalls.c (sysfs): Provide a stub.
	(bdflush): Ditto.
	(klogctl): Ditto.
	(umount2): Fix typo. Use __NR_umount2 instead of __NR_pivot_root.
	* shell/lash.c (pseudo_exec): Reset __getopt_initialized.

$ diffstat busybox-1.00-newlib.diff
 include/busybox.h |    4 +---
 libbb/interface.c |    2 +-
 libbb/loop.c      |   24 ++++++++++++++----------
 libbb/procps.c    |    5 ++++-
 libbb/syscalls.c  |   24 ++++++++++++++++++++++--
 shell/lash.c      |    6 ++++++
 6 files changed, 48 insertions(+), 17 deletions(-)


More information about the busybox mailing list