1 /* libbb_udhcp.h - busybox compatability wrapper */
9 #ifdef CONFIG_FEATURE_UDHCP_SYSLOG
13 #ifdef CONFIG_FEATURE_UDHCP_DEBUG
17 #define COMBINED_BINARY
20 #ifdef CONFIG_INSTALL_NO_USR
21 #define DEFAULT_SCRIPT "/share/udhcpc/default.script"
23 #define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
26 #define xfopen bb_xfopen
36 #define xmalloc malloc
37 #define xcalloc calloc
39 #define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
41 static inline FILE *xfopen(const char *file, const char *mode)
44 if (!(fp = fopen(file, mode))) {
45 perror("could not open input file");
53 #endif /* _LIBBB_UDHCP_H */