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: [email protected]
        ReportedBy: [email protected]


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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to