summaryrefslogtreecommitdiff
path: root/package/busybox/patches/patch-include_libbb_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-04-04 10:34:02 +0200
commit5042ac8e5927d0089d3902b1c37e5bcc1565d053 (patch)
treecd2be3085808c5ac59dd70f9c610c6a40bfe3ffd /package/busybox/patches/patch-include_libbb_h
parent401dabf66529cfb5ab47b4c78d5e25fd493eef1f (diff)
parent4d569ed1a3305c7b7abe8fa4273cea3b559cc85a (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Conflicts: BUGS package/autoconf/Makefile
Diffstat (limited to 'package/busybox/patches/patch-include_libbb_h')
-rw-r--r--package/busybox/patches/patch-include_libbb_h76
1 files changed, 7 insertions, 69 deletions
diff --git a/package/busybox/patches/patch-include_libbb_h b/package/busybox/patches/patch-include_libbb_h
index 37c500bdc..0087dbde5 100644
--- a/package/busybox/patches/patch-include_libbb_h
+++ b/package/busybox/patches/patch-include_libbb_h
@@ -1,80 +1,18 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- busybox-1.13.4.orig/include/libbb.h 2009-04-15 02:09:42.000000000 +0200
-+++ busybox-1.13.4/include/libbb.h 2009-05-09 02:06:09.000000000 +0200
-@@ -44,6 +44,7 @@
+--- busybox-1.15.2.orig/include/libbb.h Thu Oct 8 03:04:16 2009
++++ busybox-1.15.2/include/libbb.h Sat Dec 19 12:42:57 2009
+@@ -48,6 +48,7 @@
#define PATH_MAX 256
#endif
-+#if !(defined __APPLE__ || defined __FreeBSD__)
++#if !(defined __APPLE__ || defined __FreeBSD__ || defined __MirBSD__ )
#ifdef HAVE_MNTENT_H
#include <mntent.h>
#endif
-@@ -58,6 +59,7 @@
+@@ -61,6 +62,7 @@
+ #include <selinux/context.h>
#include <selinux/flask.h>
#include <selinux/av_permissions.h>
- #endif
+#endif
-
- #if ENABLE_LOCALE_SUPPORT
- #include <locale.h>
-@@ -71,9 +73,11 @@
-
- #include <pwd.h>
- #include <grp.h>
-+#ifndef HOSTCOMPILE
- #if ENABLE_FEATURE_SHADOWPASSWDS
- # include <shadow.h>
#endif
-+#endif
-
- /* Some libc's forget to declare these, do it ourself */
-
-@@ -409,7 +413,9 @@ struct BUG_too_small {
- char BUG_family_t_too_small[(0
- | AF_UNSPEC
- | AF_INET
-+#ifndef HOSTCOMPILE
- | AF_INET6
-+#endif
- | AF_UNIX
- #ifdef AF_PACKET
- | AF_PACKET
-@@ -810,7 +816,9 @@ enum {
- # define bb_daemonize_or_rexec(flags, argv) bb_daemonize_or_rexec(flags)
- # define bb_daemonize(flags) bb_daemonize_or_rexec(flags, bogus)
- #else
-+#ifndef HOSTCOMPILE
- void re_exec(char **argv) NORETURN FAST_FUNC;
-+#endif
- void forkexit_or_rexec(char **argv) FAST_FUNC;
- extern bool re_execed;
- int BUG_fork_is_unavailable_on_nommu(void) FAST_FUNC;
-@@ -1003,10 +1011,12 @@ extern void run_applet_and_exit(const ch
- extern void run_applet_no_and_exit(int a, char **argv) NORETURN FAST_FUNC;
- #endif
-
-+#if !(defined __APPLE__ || defined __FreeBSD__)
- #ifdef HAVE_MNTENT_H
- extern int match_fstype(const struct mntent *mt, const char *fstypes) FAST_FUNC;
- extern struct mntent *find_mount_point(const char *name, const char *table) FAST_FUNC;
- #endif
-+#endif
- extern void erase_mtab(const char * name) FAST_FUNC;
- extern unsigned int tty_baud_to_value(speed_t speed) FAST_FUNC;
- extern speed_t tty_value_to_baud(unsigned int value) FAST_FUNC;
-@@ -1084,6 +1094,7 @@ extern void bb_do_delay(int seconds) FAS
- extern void change_identity(const struct passwd *pw) FAST_FUNC;
- extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC;
- extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) FAST_FUNC;
-+#if !(defined __APPLE__ || defined __FreeBSD__)
- #if ENABLE_SELINUX
- extern void renew_current_security_context(void) FAST_FUNC;
- extern void set_current_security_context(security_context_t sid) FAST_FUNC;
-@@ -1094,6 +1105,7 @@ extern void selinux_preserve_fcontext(in
- #else
- #define selinux_preserve_fcontext(fdesc) ((void)0)
- #endif
-+#endif
- extern void selinux_or_die(void) FAST_FUNC;
- extern int restricted_shell(const char *shell) FAST_FUNC;
+ #if ENABLE_LOCALE_SUPPORT