You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Leif Hedstrom (JIRA)" <ji...@apache.org> on 2016/03/27 00:38:25 UTC
[jira] [Created] (TS-4307) Check for existence of alloca.h
consistently
Leif Hedstrom created TS-4307:
---------------------------------
Summary: Check for existence of alloca.h consistently
Key: TS-4307
URL: https://issues.apache.org/jira/browse/TS-4307
Project: Traffic Server
Issue Type: Bug
Components: Build, Core
Reporter: Leif Hedstrom
On FreeBSD 10.2, the alloca.h file no longer seems to exist. The fix is trivial, e.g.
{code}
diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc
index 7711965..70e5934 100644
--- a/iocore/eventsystem/UnixEventProcessor.cc
+++ b/iocore/eventsystem/UnixEventProcessor.cc
@@ -24,7 +24,9 @@
#include "P_EventSystem.h" /* MAGIC_EDITING_TAG */
#include <sched.h>
#if TS_USE_HWLOC
+#if HAVE_ALLOCA_H
#include <alloca.h>
+#endif
#include <hwloc.h>
#endif
#include "ts/ink_defs.h"
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)