aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libbb.h4
-rw-r--r--libbb/libbb.h4
-rw-r--r--libbb/messages.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h
index cbc1436fc..2937b4863 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -35,6 +35,10 @@
#include <features.h>
+#ifndef _BB_INTERNAL_H_
+#include "../busybox.h"
+#endif
+
#if __GNU_LIBRARY__ < 5
/* libc5 doesn't define socklen_t */
typedef unsigned int socklen_t;
diff --git a/libbb/libbb.h b/libbb/libbb.h
index cbc1436fc..2937b4863 100644
--- a/libbb/libbb.h
+++ b/libbb/libbb.h
@@ -35,6 +35,10 @@
#include <features.h>
+#ifndef _BB_INTERNAL_H_
+#include "../busybox.h"
+#endif
+
#if __GNU_LIBRARY__ < 5
/* libc5 doesn't define socklen_t */
typedef unsigned int socklen_t;
diff --git a/libbb/messages.c b/libbb/messages.c
index 16ac63f69..bdf931ba6 100644
--- a/libbb/messages.c
+++ b/libbb/messages.c
@@ -19,7 +19,7 @@
*
*/
-#include "../busybox.h"
+#include "libbb.h"
#ifdef L_full_version
const char *full_version = BB_BANNER " multi-call binary";