summaryrefslogtreecommitdiff
path: root/toxcore/network.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-22 09:37:31 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-22 21:05:30 +0000
commit8f1bbcf83e23286ebdfd17b83d886fc8f0a3eb2a (patch)
tree8b73a35a6104159f5055f1e0b42a63004758bc8f /toxcore/network.c
parente6c04ef0287a69c453f129778ef35932e0dff4b2 (diff)
Use <stdlib.h> for alloca on FreeBSD.
https://www.freebsd.org/cgi/man.cgi?alloca If stdlib.h does not define alloca, and we're using GCC (or Clang), we define the macro ourselves in terms of a GCC builtin.
Diffstat (limited to 'toxcore/network.c')
-rw-r--r--toxcore/network.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 7d6e415a..56f9aea0 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -31,6 +31,7 @@
31#endif 31#endif
32 32
33#if defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_WINXP 33#if defined(_WIN32) && _WIN32_WINNT >= _WIN32_WINNT_WINXP
34#undef _WIN32_WINNT
34#define _WIN32_WINNT 0x501 35#define _WIN32_WINNT 0x501
35#endif 36#endif
36 37