X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=src%2Fxalloc.h;h=da74ce1fca201869965ef31b4f674a6f39cade83;hb=373b0c12d9d0e8a3b449fd18be704e28dd6403e1;hp=34f02d0ec1dd0ac7f20b0eba649c8c7820c358f7;hpb=5c76d51d0badd8a35e3883f18a5792e830448768;p=tinc diff --git a/src/xalloc.h b/src/xalloc.h index 34f02d0e..da74ce1f 100644 --- a/src/xalloc.h +++ b/src/xalloc.h @@ -21,6 +21,8 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include "system.h" + static inline void *xmalloc(size_t n) __attribute__((__malloc__)); static inline void *xmalloc(size_t n) { void *p = malloc(n); @@ -65,7 +67,7 @@ static inline char *xstrdup(const char *s) { } static inline int xvasprintf(char **strp, const char *fmt, va_list ap) { -#ifdef HAVE_MINGW +#ifdef HAVE_WINDOWS char buf[1024]; int result = vsnprintf(buf, sizeof(buf), fmt, ap);