1 /* libbb_udhcp.h - busybox compatability wrapper */
3 /* bit of a hack, do this no matter what the order of the includes.
6 #ifdef CONFIG_INSTALL_NO_USR
8 #define DEFAULT_SCRIPT "/share/udhcpc/default.script"
11 #ifndef _LIBBB_UDHCP_H
12 #define _LIBBB_UDHCP_H
17 #ifdef CONFIG_FEATURE_UDHCP_SYSLOG
21 #ifdef CONFIG_FEATURE_UDHCP_DEBUG
25 #define COMBINED_BINARY
28 #define xfopen bb_xfopen
34 #include <sys/sysinfo.h>
39 #define xmalloc malloc
40 #define xcalloc calloc
42 static inline FILE *xfopen(const char *file, const char *mode)
45 if (!(fp = fopen(file, mode))) {
46 perror("could not open input file");
54 #endif /* _LIBBB_UDHCP_H */