[Bug 4401] New: libsdl includes asm/page.h, uses deprecated getpagesize()
bugzilla-daemon at amethyst.openembedded.net
bugzilla-daemon at amethyst.openembedded.net
Wed Jul 2 00:30:52 CEST 2008
http://bugs.openembedded.net/show_bug.cgi?id=4401
Summary: libsdl includes asm/page.h, uses deprecated
getpagesize()
Classification: Unclassified
Product: Openembedded
Version: Angstrom 2008.x
Platform: Other
OS/Version: other
Status: UNCONFIRMED
Keywords: patch
Severity: minor
Priority: P3
Component: org.openembedded.dev
AssignedTo: openembedded-issues at lists.openembedded.org
ReportedBy: gwossum at acm.org
Created an attachment (id=9813)
--> (http://bugs.openembedded.net/attachment.cgi?id=9813)
Replace getpagesize(), remove #include <asm/page.h>
The pagesize.patch for libsdl() replaces PAGE_SIZE (which is good), but leaves
in the include for asm/page.h. Also, it replaces PAGE_SIZE with getpagesize(),
which is removed in POSIX.1-2001, and works incorrectly on some older glibc's
(see getpagesize man page for details).
This patch replaces getpagesize() with sysconf(_SC_PAGESIZE), and removes the
include for asm/page.h
Noticed this issue when I tried to build libsdl for a "native" system, which
doesn't install kernel headers.
--
Configure bugmail: http://bugs.openembedded.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Openembedded-issues
mailing list