[Libreoffice-bugs] [Bug 52536] New: : cppunit fails to build on FreeBSD

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 26 21:44:30 CEST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=52536

             Bug #: 52536
           Summary: : cppunit fails to build on FreeBSD
    Classification: Unclassified
           Product: LibreOffice
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
 Status Whiteboard: BSA
          Severity: normal
          Priority: medium
         Component: Libreoffice
        AssignedTo: libreoffice-bugs at lists.freedesktop.org
        ReportedBy: avg at icyb.net.ua


TypeInfoHelper.cpp
(http://cgit.freedesktop.org/libreoffice/cppunit/tree/src/cppunit/TypeInfoHelper.cpp)
includes malloc.h header, apparently for free(3).  But this is not portable.
According to POSIX free(3) is declared in stdlib.h.  This is portable and works
on BSDs, Linux as well as in other POSIX-compliant environments.

So, I suggest replacing <malloc.h> with <cstdlib> given that this is C++ code.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Libreoffice-bugs mailing list