Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4307

Check for existence of alloca.h consistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.1.2, 6.2.0
    • Build, Core
    • None

    Description

      On FreeBSD 10.2, the alloca.h file no longer seems to exist. The fix is trivial, e.g.

      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"
      

      Attachments

        Activity

          People

            zwoop Leif Hedstrom
            zwoop Leif Hedstrom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: