summaryrefslogtreecommitdiff
path: root/release/src/router/busybox/networking/udhcp/libbb_udhcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'release/src/router/busybox/networking/udhcp/libbb_udhcp.h')
-rw-r--r--release/src/router/busybox/networking/udhcp/libbb_udhcp.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/release/src/router/busybox/networking/udhcp/libbb_udhcp.h b/release/src/router/busybox/networking/udhcp/libbb_udhcp.h
new file mode 100644
index 00000000..e0942980
--- /dev/null
+++ b/release/src/router/busybox/networking/udhcp/libbb_udhcp.h
@@ -0,0 +1,29 @@
+/* libbb_udhcp.h - busybox compatability wrapper */
+
+#ifndef _LIBBB_UDHCP_H
+#define _LIBBB_UDHCP_H
+
+#ifdef IN_BUSYBOX
+#include "libbb.h"
+
+#ifdef CONFIG_FEATURE_UDHCP_SYSLOG
+#define SYSLOG
+#endif
+
+#ifdef CONFIG_FEATURE_UDHCP_DEBUG
+#define DEBUG
+#endif
+
+#define COMBINED_BINARY
+#include "version.h"
+
+#else /* ! BB_VER */
+
+#define TRUE 1
+#define FALSE 0
+
+#define xmalloc malloc
+
+#endif /* BB_VER */
+
+#endif /* _LIBBB_UDHCP_H */