Added "include <alloca.h>" due to compile failure on Cygwin

pull/35/head
Jeffrey Walton 2015-07-27 02:06:11 -04:00
parent 69098d8cf2
commit 6b2129afb3
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ being unloaded from L1 cache, until that round is finished.
#include "cpu.h"
#include "trap.h"
// Non-conforming C++ program die to alloca. See http://stackoverflow.com/q/31645309/608639.
#include <alloca.h>
#if GCC_DIAGNOSTIC_AWARE
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wunused-function"