You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/03/27 00:46:25 UTC

[jira] [Commented] (TS-4307) Check for existence of alloca.h consistently

    [ https://issues.apache.org/jira/browse/TS-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15213252#comment-15213252 ] 

ASF subversion and git services commented on TS-4307:
-----------------------------------------------------

Commit f39a0c4a8e77b24d03a503c34a3671345c074d6b in trafficserver's branch refs/heads/master from [~zwoop]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=f39a0c4 ]

TS-4307 Checks for existence of alloca.h consistently


> 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)