Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6480

FreeBSD comparability: Location of malloc

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.0M14
    • DRLVM
    • operating system : FreeBSD [8.0p2]
      CPU architecture : x86
      ant os name/arch : FreeBSD/i386
      hosting Java : 1.6.0_07 (The FreeBSD Foundation)
    • Patch Available
    • Novice

    Description

      While attempting to run the included unit tests (attempting to track down another issue), I got an error from a test header file. Apparently the standard library declaration for malloc(size_t) and friends are now in <stdlib.h>, or where they should be. On FreeBSD including <malloc.h> will generate a compiler error (via preprocessor), and directs you to include <stdlib.h>. Those governing the header files are adamant about the modifications.

      Attachments

        1. fbsd-malloc-stdlib-patch.diff
          0.5 kB
          Mark Eschbach

        Activity

          People

            Unassigned Unassigned
            meschbach Mark Eschbach
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: