Ticket #2141: mplayer.patch

File mplayer.patch, 1.5 KB (added by nucleo@…, 13 years ago)

final patch

  • cpudetect.c

     
    5656#if CONFIG_RUNTIME_CPUDETECT
    5757/* I believe this code works.  However, it has only been used on a PII and PIII */
    5858
    59 #if defined(__linux__) && defined(_POSIX_SOURCE) && !ARCH_X86_64
     59#if defined(__linux__) && !ARCH_X86_64
    6060static void sigill_handler_sse( int signal, struct sigcontext sc )
    6161{
    6262   mp_msg(MSGT_CPUDETECT,MSGL_V, "SIGILL, " );
     
    7575
    7676   gCpuCaps.hasSSE=0;
    7777}
    78 #endif /* __linux__ && _POSIX_SOURCE */
     78#endif /* __linux__ */
    7979
    8080#if (defined(__MINGW32__) || defined(__CYGWIN__)) && !ARCH_X86_64
    8181LONG CALLBACK win32_sig_handler_sse(EXCEPTION_POINTERS* ep)
     
    177177        mp_msg(MSGT_CPUDETECT,MSGL_V, gCpuCaps.hasSSE ? "yes.\n" : "no!\n" );
    178178    }
    179179#elif defined(__linux__)
    180 #if defined(_POSIX_SOURCE)
    181180    struct sigaction saved_sigill;
    182181
    183182    /* Save the original signal handlers.
     
    210209     */
    211210    mp_msg(MSGT_CPUDETECT,MSGL_V, "Tests of OS support for SSE %s\n", gCpuCaps.hasSSE ? "passed." : "failed!" );
    212211#else
    213     /* We can't use POSIX signal handling to test the availability of
    214      * SSE, so we disable it by default.
    215      */
    216     mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, disabling to be safe.\n" );
    217     gCpuCaps.hasSSE=0;
    218 #endif /* _POSIX_SOURCE */
    219 #else
    220212    /* Do nothing on other platforms for now.
    221213     */
    222214    mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, leaving disabled.\n" );