Projects
Essentials
MPlayer
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 103
View file
MPlayer.spec
Changed
@@ -220,6 +220,7 @@ Patch38: MPlayer-libopus_support.patch Patch39: MPlayer-linking_dvdread.patch patch40: MPlayer-ve_lavc-intptr.patch +Patch41: MPlayer.i386.patch BuildRequires: pkgconfig(libavcodec) BuildRequires: pkgconfig(libavformat) @@ -504,6 +505,7 @@ %endif %patch39 %patch40 +%patch41 %build echo '%{version}-Packman' > VERSION
View file
MPlayer.i386.patch
Added
@@ -0,0 +1,38 @@ +--- a/cpudetect.c ++++ b/cpudetect.c +@@ -57,7 +57,7 @@ CpuCaps gCpuCaps; + /* I believe this code works. However, it has only been used on a PII and PIII */ + + #if defined(__linux__) && !ARCH_X86_64 +-static void sigill_handler_sse( int signal, struct sigcontext sc ) ++static void sigill_handler_sse( int signal, siginfo_t *si, void *uc ) + { + mp_msg(MSGT_CPUDETECT,MSGL_V, "SIGILL, " ); + +@@ -71,7 +71,7 @@ static void sigill_handler_sse( int sign + * word will be restored at the end of the test, so we don't need + * to worry about doing it here. Besides, we may not be able to... + */ +- sc.eip += 3; ++ si->si_addr += 3; + + gCpuCaps.hasSSE=0; + } +@@ -178,12 +178,14 @@ static void check_os_katmai_support( voi + } + #elif defined(__linux__) + struct sigaction saved_sigill; ++ struct sigaction sigill = { ++ .sa_flags = SA_SIGINFO | SA_RESETHAND; ++ .sa_sigaction = sigill_handler_sse; ++ }; + + /* Save the original signal handlers. + */ +- sigaction( SIGILL, NULL, &saved_sigill ); +- +- signal( SIGILL, (void (*)(int))sigill_handler_sse ); ++ sigaction( SIGILL, &sigill, &saved_sigill ); + + /* Emulate test for OSFXSR in CR4. The OS will set this bit if it + * supports the extended FPU save and restore required for SSE. If
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.