mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
Fix #1288 - better mg_iobuf_append allocation strategy
This commit is contained in:
1 parent
c0a8546330
commit
9d68e20dcc
3 files changed
+23
-8
No files matched your search
@@ -127,7 +127,16 @@
|
||||
#include <stdarg.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
typedef long suseconds_t;
|
||||
struct timeval {
|
||||
time_t tv_sec;
|
||||
suseconds_t tv_usec;
|
||||
};
|
||||
#endif
|
||||
|
||||
#if MG_ENABLE_FS
|
||||
#include <sys/stat.h>
|
||||
|
||||
Reference in new issue
Block a user