Bug 140940 - pyopengl fails in freebsd because of malloc.h inclusion.
Bug#: 140940 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Other Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: python@gentoo.org Reported By: the_paya@gentoo.org
Component: Ebuilds
URL: 
Summary: pyopengl fails in freebsd because of malloc.h inclusion.
Keywords:  
Status Whiteboard: 
Opened: 2006-07-18 10:08 0000
Description:   Opened: 2006-07-18 10:08 0000
The libc on freebsd already switched to stdlib.h for malloc, and it dies when
malloc.h is included.

The attached patch fixes this, and doesn't present any trouble on linux.

------- Comment #1 From Javier Villavicencio 2006-07-18 10:09:17 0000 -------
Created an attachment (id=92140) [details]
pyopengl-2.0.1.09-malloc.patch

Removes malloc.h where stdlib.h is included and replaces malloc.h with stdlib.h
where needed.

------- Comment #2 From Javier Villavicencio 2006-07-18 10:11:37 0000 -------
Created an attachment (id=92142) [details]
pyopengl-2.0.1.09-ebuild.patch

Diff to the ebuild for this patch.

------- Comment #3 From Alastair Tse (RETIRED) 2006-07-28 06:47:34 0000 -------
included patch into portage. thanks for your patch.