patch-include_libbb_h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- busybox-1.13.4.orig/include/libbb.h 2009-04-15 02:09:42.000000000 +0200
  3. +++ busybox-1.13.4/include/libbb.h 2009-05-09 02:06:09.000000000 +0200
  4. @@ -44,6 +44,7 @@
  5. #define PATH_MAX 256
  6. #endif
  7. +#if !(defined __APPLE__ || defined __FreeBSD__)
  8. #ifdef HAVE_MNTENT_H
  9. #include <mntent.h>
  10. #endif
  11. @@ -58,6 +59,7 @@
  12. #include <selinux/flask.h>
  13. #include <selinux/av_permissions.h>
  14. #endif
  15. +#endif
  16. #if ENABLE_LOCALE_SUPPORT
  17. #include <locale.h>
  18. @@ -71,9 +73,11 @@
  19. #include <pwd.h>
  20. #include <grp.h>
  21. +#ifndef HOSTCOMPILE
  22. #if ENABLE_FEATURE_SHADOWPASSWDS
  23. # include <shadow.h>
  24. #endif
  25. +#endif
  26. /* Some libc's forget to declare these, do it ourself */
  27. @@ -409,7 +413,9 @@ struct BUG_too_small {
  28. char BUG_family_t_too_small[(0
  29. | AF_UNSPEC
  30. | AF_INET
  31. +#ifndef HOSTCOMPILE
  32. | AF_INET6
  33. +#endif
  34. | AF_UNIX
  35. #ifdef AF_PACKET
  36. | AF_PACKET
  37. @@ -810,7 +816,9 @@ enum {
  38. # define bb_daemonize_or_rexec(flags, argv) bb_daemonize_or_rexec(flags)
  39. # define bb_daemonize(flags) bb_daemonize_or_rexec(flags, bogus)
  40. #else
  41. +#ifndef HOSTCOMPILE
  42. void re_exec(char **argv) NORETURN FAST_FUNC;
  43. +#endif
  44. void forkexit_or_rexec(char **argv) FAST_FUNC;
  45. extern bool re_execed;
  46. int BUG_fork_is_unavailable_on_nommu(void) FAST_FUNC;
  47. @@ -1003,10 +1011,12 @@ extern void run_applet_and_exit(const ch
  48. extern void run_applet_no_and_exit(int a, char **argv) NORETURN FAST_FUNC;
  49. #endif
  50. +#if !(defined __APPLE__ || defined __FreeBSD__)
  51. #ifdef HAVE_MNTENT_H
  52. extern int match_fstype(const struct mntent *mt, const char *fstypes) FAST_FUNC;
  53. extern struct mntent *find_mount_point(const char *name, const char *table) FAST_FUNC;
  54. #endif
  55. +#endif
  56. extern void erase_mtab(const char * name) FAST_FUNC;
  57. extern unsigned int tty_baud_to_value(speed_t speed) FAST_FUNC;
  58. extern speed_t tty_value_to_baud(unsigned int value) FAST_FUNC;
  59. @@ -1084,6 +1094,7 @@ extern void bb_do_delay(int seconds) FAS
  60. extern void change_identity(const struct passwd *pw) FAST_FUNC;
  61. extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) NORETURN FAST_FUNC;
  62. extern void run_shell(const char *shell, int loginshell, const char *command, const char **additional_args) FAST_FUNC;
  63. +#if !(defined __APPLE__ || defined __FreeBSD__)
  64. #if ENABLE_SELINUX
  65. extern void renew_current_security_context(void) FAST_FUNC;
  66. extern void set_current_security_context(security_context_t sid) FAST_FUNC;
  67. @@ -1094,6 +1105,7 @@ extern void selinux_preserve_fcontext(in
  68. #else
  69. #define selinux_preserve_fcontext(fdesc) ((void)0)
  70. #endif
  71. +#endif
  72. extern void selinux_or_die(void) FAST_FUNC;
  73. extern int restricted_shell(const char *shell) FAST_FUNC;