aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/libbb_udhcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/libbb_udhcp.h')
-rw-r--r--networking/udhcp/libbb_udhcp.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/networking/udhcp/libbb_udhcp.h b/networking/udhcp/libbb_udhcp.h
index 73e21464f..9b5d5a846 100644
--- a/networking/udhcp/libbb_udhcp.h
+++ b/networking/udhcp/libbb_udhcp.h
@@ -1,5 +1,13 @@
1/* libbb_udhcp.h - busybox compatability wrapper */ 1/* libbb_udhcp.h - busybox compatability wrapper */
2 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 DEFUALT_SCRIPT
8#define DEFAULT_SCRIPT "/share/udhcpc/default.script"
9#endif
10
3#ifndef _LIBBB_UDHCP_H 11#ifndef _LIBBB_UDHCP_H
4#define _LIBBB_UDHCP_H 12#define _LIBBB_UDHCP_H
5 13
@@ -7,22 +15,16 @@
7#include "busybox.h" 15#include "busybox.h"
8 16
9#ifdef CONFIG_FEATURE_UDHCP_SYSLOG 17#ifdef CONFIG_FEATURE_UDHCP_SYSLOG
10#define SYSLOG 18#define UDHCP_SYSLOG
11#endif 19#endif
12 20
13#ifdef CONFIG_FEATURE_UDHCP_DEBUG 21#ifdef CONFIG_FEATURE_UDHCP_DEBUG
14#define DEBUG 22#define UDHCP_DEBUG
15#endif 23#endif
16 24
17#define COMBINED_BINARY 25#define COMBINED_BINARY
18#include "version.h" 26#include "version.h"
19 27
20#ifdef CONFIG_INSTALL_NO_USR
21#define DEFAULT_SCRIPT "/share/udhcpc/default.script"
22#else
23#define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
24#endif
25
26#define xfopen bb_xfopen 28#define xfopen bb_xfopen
27 29
28#else /* ! BB_VER */ 30#else /* ! BB_VER */
@@ -36,8 +38,6 @@
36#define xmalloc malloc 38#define xmalloc malloc
37#define xcalloc calloc 39#define xcalloc calloc
38 40
39#define DEFAULT_SCRIPT "/usr/share/udhcpc/default.script"
40
41static inline FILE *xfopen(const char *file, const char *mode) 41static inline FILE *xfopen(const char *file, const char *mode)
42{ 42{
43 FILE *fp; 43 FILE *fp;