JDK-7113017 : Use POSIX compliant include file headers in sun/awt/medialib/mlib_types.h
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-11-17
  • Updated: 2013-06-26
  • Resolved: 2011-11-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u40Fixed 8 b15Fixed
Description
http://mail.openjdk.java.net/pipermail/2d-dev/2011-November/002248.html

On 11/14/2011 9:59 AM, Charles Lee wrote:
> Hi guys,
>
> I'd like to propose a change in mlib_types.h, it looks loke:
>
> -#if defined(__linux__)
> -#include <stdint.h> /* for uintptr_t */
> -#include <malloc.h> /* for ptrdiff_t */
> -#else
> -#include <link.h> /* for uintptr_t */
> -#include <stddef.h> /* for ptrdiff_t */
> -#endif /* __linux__ */
> +#include <stdint.h>
> +#include <stddef.h>
>
> The patch is mainly about using POSIX complaint headers to get rid of
> the if/else define.
>
> I have check uintptr_t on the solaris 11 express. It will be included in
> stdint.h. And my ubuntu works where which malloc.h changed to stddef.h.

Comments
EVALUATION Description has suggested fix.
17-11-2011