[PATCH] add conditional external declaration of function
Robert P. J. Day
rpjday at mindspring.com
Wed Mar 29 20:31:00 UTC 2006
(even in the header file, make it clear that the routine depends on
__uClinux__.)
diff -pru busybox.orig/include/libbb.h busybox/include/libbb.h
--- busybox.orig/include/libbb.h 2006-03-29 07:43:45.000000000 -0500
+++ busybox/include/libbb.h 2006-03-29 15:29:06.000000000 -0500
@@ -461,8 +461,11 @@ extern void llist_free(llist_t *elm);
extern void print_login_issue(const char *issue_file, const char *tty);
extern void print_login_prompt(void);
+#if defined(__uClinux__)
extern void vfork_daemon_rexec(int nochdir, int noclose,
int argc, char **argv, char *foreground_opt);
+#endif
+
extern int get_terminal_width_height(int fd, int *width, int *height);
extern unsigned long get_ug_id(const char *s, long (*__bb_getxxnam)(const char *));
Signed off by: Robert P. J. Day <rpjday at mindspring.com>
More information about the busybox
mailing list