changeset 8043:353f2f270c84

. There is no "alloca.h" on FreeBSD, and I think this applies across *BSD. Use <stdlib.h> instead.
author Greg Lewis <glewis@eyesbeyond.com>
date Mon, 25 Jul 2016 06:04:20 -0700
parents dd5bc996e115
children d208cc11392a
files src/cpu/x86/vm/sharedRuntime_x86_64.cpp
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/sharedRuntime_x86_64.cpp	Sun Jul 24 16:26:38 2016 -0700
+++ b/src/cpu/x86/vm/sharedRuntime_x86_64.cpp	Mon Jul 25 06:04:20 2016 -0700
@@ -23,9 +23,12 @@
  */
 
 #include "precompiled.hpp"
-#ifndef _WINDOWS
+#if !defined(_WINDOWS) && !defined(_ALLBSD_SOURCE)
 #include "alloca.h"
 #endif
+#ifdef _ALLBSD_SOURCE
+#include <stdlib.h>
+#endif
 #include "asm/macroAssembler.hpp"
 #include "asm/macroAssembler.inline.hpp"
 #include "code/debugInfoRec.hpp"