projects
/
platform
/
upstream
/
curl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 7.50.2
[platform/upstream/curl.git]
/
lib
/
memdebug.c
diff --git
a/lib/memdebug.c
b/lib/memdebug.c
index
804b5fa
..
ccbf461
100644
(file)
--- a/
lib/memdebug.c
+++ b/
lib/memdebug.c
@@
-26,10
+26,12
@@
#include <curl/curl.h>
#include <curl/curl.h>
-#include "curl_printf.h"
#include "urldata.h"
#define MEMDEBUG_NODEFINES /* don't redefine the standard functions */
#include "urldata.h"
#define MEMDEBUG_NODEFINES /* don't redefine the standard functions */
+
+/* The last 3 #include files should be in this order */
+#include "curl_printf.h"
#include "curl_memory.h"
#include "memdebug.h"
#include "curl_memory.h"
#include "memdebug.h"
@@
-117,7
+119,7
@@
void curl_memdebug(const char *logname)
logfile = stderr;
#ifdef MEMDEBUG_LOG_SYNC
/* Flush the log file after every line so the log isn't lost in a crash */
logfile = stderr;
#ifdef MEMDEBUG_LOG_SYNC
/* Flush the log file after every line so the log isn't lost in a crash */
- set
vbuf(logfile, (char *)NULL, _IOLBF, 0
);
+ set
buf(logfile, (char *)NULL
);
#endif
}
}
#endif
}
}