mirror of https://github.com/mirror/busybox.git
- make sure to include dmalloc.h at the very end of busybox.h or libbb.h.
parent
cef737f038
commit
d4cffd1cc3
|
@ -44,10 +44,6 @@
|
|||
#define BB_BANNER "BusyBox v" BB_VER " (" BB_EXTRA_VERSION ")"
|
||||
#endif
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
|
||||
#include <features.h>
|
||||
|
||||
/* Pull in the utility routines from libbb */
|
||||
|
@ -118,4 +114,8 @@ extern const struct BB_applet applets[];
|
|||
#define PATH_MAX 256
|
||||
#endif
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
|
||||
#endif /* _BB_INTERNAL_H_ */
|
||||
|
|
|
@ -34,10 +34,6 @@
|
|||
|
||||
#include <netdb.h>
|
||||
|
||||
#ifdef DMALLOC
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
|
||||
#include <features.h>
|
||||
|
||||
#include "bb_config.h"
|
||||
|
@ -178,12 +174,12 @@ extern const char *bb_skip_whitespace(const char *);
|
|||
extern struct BB_applet *find_applet_by_name(const char *name);
|
||||
void run_applet_by_name(const char *name, int argc, char **argv);
|
||||
|
||||
//#warning is this needed anymore?
|
||||
#ifndef DMALLOC
|
||||
/* dmalloc will redefine these to it's own implementation. It is safe
|
||||
* to have the prototypes here unconditionally. */
|
||||
extern void *xmalloc(size_t size);
|
||||
extern void *xrealloc(void *old, size_t size);
|
||||
extern void *xcalloc(size_t nmemb, size_t size);
|
||||
#endif
|
||||
|
||||
extern char *bb_xstrdup (const char *s);
|
||||
extern char *bb_xstrndup (const char *s, int n);
|
||||
extern char *safe_strncpy(char *dst, const char *src, size_t size);
|
||||
|
@ -475,4 +471,9 @@ extern unsigned long get_ug_id(const char *s, long (*__bb_getxxnam)(const char *
|
|||
#define HASH_MD5 2
|
||||
extern int hash_fd(int fd, const size_t size, const uint8_t hash_algo, uint8_t *hashval);
|
||||
|
||||
/* busybox.h will include dmalloc later for us, else include it here. */
|
||||
#if !defined _BB_INTERNAL_H_ && defined DMALLOC
|
||||
#include <dmalloc.h>
|
||||
#endif
|
||||
|
||||
#endif /* __LIBCONFIG_H__ */
|
||||
|
|
Loading…
Reference in New Issue