diff options
-rw-r--r-- | libbb/libbb.h | 5 | ||||
-rw-r--r-- | libopkg/opkg_download.c | 20 |
2 files changed, 15 insertions, 10 deletions
diff --git a/libbb/libbb.h b/libbb/libbb.h index 17f3c25..619b400 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h @@ -29,8 +29,13 @@ #include <features.h> +#ifndef FALSE #define FALSE ((int) 0) +#endif + +#ifndef TRUE #define TRUE ((int) 1) +#endif extern void error_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); extern void error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); diff --git a/libopkg/opkg_download.c b/libopkg/opkg_download.c index 0cc3da2..c4b2f0c 100644 --- a/libopkg/opkg_download.c +++ b/libopkg/opkg_download.c @@ -18,6 +18,16 @@ */ #include "config.h" +#include "includes.h" +#include "opkg_download.h" +#include "opkg_message.h" + +#include "sprintf_alloc.h" +#include "xsystem.h" +#include "file_util.h" +#include "opkg_defines.h" +#include "libbb/libbb.h" + #ifdef HAVE_CURL #include <curl/curl.h> #endif @@ -39,16 +49,6 @@ #include <openssl/hmac.h> #endif -#include "includes.h" -#include "opkg_download.h" -#include "opkg_message.h" - -#include "sprintf_alloc.h" -#include "xsystem.h" -#include "file_util.h" -#include "opkg_defines.h" -#include "libbb/libbb.h" - #ifdef HAVE_PATHFINDER #include "opkg_pathfinder.h" #endif |