ports/net-p2p/libbt/files/patch-include__util.h
Yuri Victorovich c32ab33b69 net-p2p/libbt: Update 1.05 -> 1.06
egypcio@googlemail.com takes maintainership

Port changes:
* Add DOCS option
* Add to dependencies
* Port cleanup

PR:		231033
Submitted by:	Vinícius Zavam <egypcio@googlemail.com> (original version)
Submitted by:	Nathan <ndowens@yahoo.com> (final version)
2018-09-01 19:33:30 +00:00

21 lines
548 B
C

--- include/util.h.orig 2018-08-30 18:48:15 UTC
+++ include/util.h
@@ -53,11 +53,15 @@
typedef void (*exitfn_ptr) (int,void*);
int on_exit( exitfn_ptr exitfn, void* data) ;
#endif
-#define malloc(s) use_btmalloc_instead
-#define calloc(n,s) use_btcalloc_instead
-#define realloc(p,s) use_btrealloc_instead
+/*
+ #define malloc(s) use_btmalloc_instead
+ #define calloc(n,s) use_btcalloc_instead
+ #define realloc(p,s) use_btrealloc_instead
+/*
#undef free
+/*
#define free(p) use_btfree_instead
+*/
void hexdump( void *buf, int buflen);