summaryrefslogtreecommitdiff
path: root/common/netjack_packet.c
diff options
context:
space:
mode:
authorKarl Linden <karl.j.linden@gmail.com>2018-01-01 12:12:15 +0100
committerKarl Linden <karl.j.linden@gmail.com>2018-10-07 13:38:52 +0200
commit90f72c7c605a0334e2acd6cac9e6441417a3dbb9 (patch)
tree703accbee668824b98ae3bdb25f4a9d8372958a1 /common/netjack_packet.c
parent631c12f4c327bcfa3fdc39498a0016a39196575c (diff)
downloadjack2-90f72c7c605a0334e2acd6cac9e6441417a3dbb9.tar.gz
Handle alloca properlycompat
This adds missing includes for alloca. The man page of alloca(3) states that alloca.h should be #include'd to use alloca. Also work around missing alloca.h header on Windows by adding a compatibility module. Closes: #197
Diffstat (limited to 'common/netjack_packet.c')
-rw-r--r--common/netjack_packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/netjack_packet.c b/common/netjack_packet.c
index e69f8062..7e8f7be8 100644
--- a/common/netjack_packet.c
+++ b/common/netjack_packet.c
@@ -4,6 +4,7 @@
*
* used by the driver and the jacknet_client
*
+ * Copyright (C) 2019 Karl Linden <karl.j.linden@gmail.com>
* Copyright (C) 2008 Marc-Olivier Barre <marco@marcochapeau.org>
* Copyright (C) 2008 Pieter Palmers <pieterpalmers@users.sourceforge.net>
* Copyright (C) 2006 Torben Hohn <torbenh@gmx.de>
@@ -38,6 +39,7 @@
#define _GNU_SOURCE
#endif
+#include <alloca.h>
#include <math.h>
#include <stdio.h>
#include <memory.h>