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

[patch] dont use malloc.h

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.1.0, 3.0.2
    • Build
    • Freebsd 8.2/i32

    Description

      On FreeBSD including malloc.h makes program uncompilable. there is #error include stdlib.h instead inside malloc.h header file.

      fix follows:

      — lib/tsconfig/TsConfigGrammar.y.orig 2011-08-20 18:36:13.685707419 +0200
      +++ lib/tsconfig/TsConfigGrammar.y 2011-08-20 18:36:34.796159531 +0200
      @@ -23,7 +23,7 @@
      */

      1. include "TsConfigTypes.h"
        1. include <malloc.h>
          +# include <stdlib.h>

      // Inhibit Bison definitions.

      1. define YYMALLOC malloc

      Attachments

        1. patch-malloc-h
          0.3 kB
          Radim Kolar

        Activity

          People

            zwoop Leif Hedstrom
            hsn Radim Kolar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: