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:48:25 UTC
[jira] [Resolved] (TS-4307) Check for existence of alloca.h
consistently
[ https://issues.apache.org/jira/browse/TS-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leif Hedstrom resolved TS-4307.
-------------------------------
Resolution: Fixed
> 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
> Assignee: Leif Hedstrom
> Fix For: 6.2.0
>
>
> 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)