diff options
Diffstat (limited to 'urunlevel/networking/udhcp/libbb_udhcp.h')
-rw-r--r-- | urunlevel/networking/udhcp/libbb_udhcp.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/urunlevel/networking/udhcp/libbb_udhcp.h b/urunlevel/networking/udhcp/libbb_udhcp.h deleted file mode 100644 index 3204be0..0000000 --- a/urunlevel/networking/udhcp/libbb_udhcp.h +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | /* libbb_udhcp.h - busybox compatability wrapper */ | ||
2 | |||
3 | /* bit of a hack, do this no matter what the order of the includes. | ||
4 | * (for busybox) */ | ||
5 | |||
6 | #ifdef CONFIG_INSTALL_NO_USR | ||
7 | #undef DEFAULT_SCRIPT | ||
8 | //#define DEFAULT_SCRIPT "/share/udhcpc/default.script" | ||
9 | #define DEFAULT_SCRIPT "/sbin/udhcpc_script" | ||
10 | #endif | ||
11 | |||
12 | #ifndef _LIBBB_UDHCP_H | ||
13 | #define _LIBBB_UDHCP_H | ||
14 | |||
15 | #ifdef IN_BUSYBOX | ||
16 | #include "busybox.h" | ||
17 | |||
18 | #ifdef CONFIG_FEATURE_UDHCP_SYSLOG | ||
19 | #define UDHCP_SYSLOG | ||
20 | #endif | ||
21 | |||
22 | #ifdef CONFIG_FEATURE_UDHCP_DEBUG | ||
23 | #define UDHCP_DEBUG | ||
24 | #endif | ||
25 | |||
26 | #define COMBINED_BINARY | ||
27 | #include "version.h" | ||
28 | |||
29 | #define xfopen bb_xfopen | ||
30 | |||
31 | #else /* ! BB_VER */ | ||
32 | |||
33 | #include <stdlib.h> | ||
34 | #include <stdio.h> | ||
35 | #include <sys/sysinfo.h> | ||
36 | |||
37 | #define TRUE 1 | ||
38 | #define FALSE 0 | ||
39 | |||
40 | #define xmalloc malloc | ||
41 | #define xcalloc calloc | ||
42 | |||
43 | static inline FILE *xfopen(const char *file, const char *mode) | ||
44 | { | ||
45 | FILE *fp; | ||
46 | if (!(fp = fopen(file, mode))) { | ||
47 | perror("could not open input file"); | ||
48 | exit(0); | ||
49 | } | ||
50 | return fp; | ||
51 | } | ||
52 | |||
53 | #endif /* BB_VER */ | ||
54 | |||
55 | #endif /* _LIBBB_UDHCP_H */ | ||