mirror of
https://github.com/mpv-player/mpv
synced 2025-03-25 04:38:01 +00:00
parent
dbf879be14
commit
c7f9c060e4
@ -1504,8 +1504,19 @@ echores "$_termios"
|
||||
|
||||
echocheck "shm"
|
||||
if test "$_shm" = auto ; then
|
||||
cat > $TMPC << EOF
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
int main(void) {
|
||||
shmget(0, 0, 0);
|
||||
shmat(0, 0, 0);
|
||||
shmctl(0, 0, 0);
|
||||
return 0;
|
||||
}
|
||||
EOF
|
||||
_shm=no
|
||||
statement_check sys/shm.h 'shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0)' && _shm=yes
|
||||
cc_check && _shm=yes
|
||||
fi
|
||||
if test "$_shm" = yes ; then
|
||||
def_shm='#define HAVE_SHM 1'
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#if HAVE_SHM && HAVE_XEXT
|
||||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
#include <X11/extensions/XShm.h>
|
||||
|
Loading…
Reference in New Issue
Block a user