[oe-commits] org.oe.dev libsdl-native: patch to fix build with recent headers

polyonymous commit openembedded-commits at lists.openembedded.org
Tue Jul 17 13:02:43 UTC 2007


libsdl-native: patch to fix build with recent headers

Author: polyonymous at openembedded.org
Branch: org.openembedded.dev
Revision: e09ef5f5a677602e791414d3d06ac799a01ee404
ViewMTN: http://monotone.openembedded.org/revision.psp?id=e09ef5f5a677602e791414d3d06ac799a01ee404
Files:
1
packages/libsdl/files/kernel-asm-page.patch
packages/libsdl/libsdl-native_1.2.11.bb
Diffs:

#
# mt diff -r19d5a538c567d7ccee2fffb41852887f18cf666c -re09ef5f5a677602e791414d3d06ac799a01ee404
#
# 
# 
# add_file "packages/libsdl/files/kernel-asm-page.patch"
#  content [c330d9173694f5d2da97b4be571622fb8ad8d195]
# 
# patch "packages/libsdl/libsdl-native_1.2.11.bb"
#  from [e9e581735b9f05b42424cddeb52b17e590296483]
#    to [5e5d90533f76a9b2ce70d129759c139f4c7df596]
# 
============================================================
--- packages/libsdl/files/kernel-asm-page.patch	c330d9173694f5d2da97b4be571622fb8ad8d195
+++ packages/libsdl/files/kernel-asm-page.patch	c330d9173694f5d2da97b4be571622fb8ad8d195
@@ -0,0 +1,13 @@
+diff --git a/src/video/Xext/Xxf86dga/XF86DGA.c b/src/video/Xext/Xxf86dga/XF86DGA.c
+index 4e3d662..de38a3c 100644
+--- a/src/video/Xext/Xxf86dga/XF86DGA.c
++++ b/src/video/Xext/Xxf86dga/XF86DGA.c
+@@ -18,7 +18,7 @@ Copyright (c) 1995,1996  The XFree86 Project, Inc
+ #define HAS_MMAP_ANON
+ #include <sys/types.h>
+ #include <sys/mman.h>
+-#include <asm/page.h>   /* PAGE_SIZE */
++#include <unistd.h>
+ #define HAS_SC_PAGESIZE /* _SC_PAGESIZE may be an enum for Linux */
+ #define HAS_GETPAGESIZE
+ #endif /* linux */
============================================================
--- packages/libsdl/libsdl-native_1.2.11.bb	e9e581735b9f05b42424cddeb52b17e590296483
+++ packages/libsdl/libsdl-native_1.2.11.bb	5e5d90533f76a9b2ce70d129759c139f4c7df596
@@ -1,11 +1,12 @@ LICENSE = "LGPL"
 DESCRIPTION = "Simple DirectMedia Layer - native Edition"
 HOMEPAGE = "http://www.libsdl.org"
 SECTION = "libs"
 LICENSE = "LGPL"
-PR = "r1"
+PR = "r2"
 
 SRC_URI = "http://www.libsdl.org/release/SDL-${PV}.tar.gz \
-	   file://acinclude.m4"
+	   file://acinclude.m4 \
+	   file://kernel-asm-page.patch;patch=1 "
 S = "${WORKDIR}/SDL-${PV}"
 
 inherit autotools binconfig pkgconfig native






More information about the Openembedded-commits mailing list