# ChangeLog for media-libs/libsdl
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.118 2006/10/27 19:36:52 tupone Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.119 2007/01/04 07:09:17 vapier Exp $
+
+ 04 Jan 2007; Mike Frysinger <vapier@gentoo.org>
+ +files/libsdl-1.2.11-linux-headers.patch, libsdl-1.2.11-r1.ebuild:
+ Fix building with sanitized linux headers #159923.
*libsdl-1.2.11-r1 (27 Oct 2006)
--- /dev/null
+http://bugs.gentoo.org/159923
+
+--- src/video/fbcon/SDL_fbvideo.c
++++ src/video/fbcon/SDL_fbvideo.c
+@@ -32,6 +32,10 @@
+ #include <asm/page.h> /* For definition of PAGE_SIZE */
+ #include <linux/vt.h>
+
++#ifndef PAGE_SIZE
++# define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
++#endif
++
+ #include "SDL_video.h"
+ #include "SDL_mouse.h"
+ #include "../SDL_sysvideo.h"
+--- src/video/ps2gs/SDL_gsyuv.c
++++ src/video/ps2gs/SDL_gsyuv.c
+@@ -29,6 +29,10 @@
+ #include <sys/mman.h>
+ #include <asm/page.h> /* For definition of PAGE_SIZE */
+
++#ifndef PAGE_SIZE
++# define PAGE_SIZE sysconf(_SC_PAGE_SIZE)
++#endif
++
+ #include "SDL_video.h"
+ #include "SDL_gsyuv_c.h"
+ #include "../SDL_yuvfuncs.h"
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.11-r1.ebuild,v 1.1 2006/10/27 19:36:52 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.11-r1.ebuild,v 1.2 2007/01/04 07:09:17 vapier Exp $
inherit flag-o-matic toolchain-funcs eutils libtool
epatch "${FILESDIR}"/${P}-sdl-config.patch
epatch "${FILESDIR}"/${P}-xinerama-head-0.patch #145917
epatch "${FILESDIR}"/${P}-no-inline-BlitRGBtoRGBPixelAlphaMMX3DNOW.patch #148186
- # Fix segfault when auto converting stream #151991
- epatch "${FILESDIR}"/${P}-audioConv.patch
+ epatch "${FILESDIR}"/${P}-linux-headers.patch #159923
+ epatch "${FILESDIR}"/${P}-audioConv.patch #151991
# add yasm-compatible defines to nasm code (hopefully we
# can get this killed soonish)