summaryrefslogtreecommitdiffstats
path: root/linux
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-03 14:37:26 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-03 14:37:26 +0000
commit81948eca1a725bbb48e4b4691670df0f11161d40 (patch)
tree23e755dd0377164d527207e6394d644e6f628434 /linux
parentf8aa18019149a95309e200533d44ffa0f4535789 (diff)
downloadmpv-81948eca1a725bbb48e4b4691670df0f11161d40.tar.bz2
mpv-81948eca1a725bbb48e4b4691670df0f11161d40.tar.xz
undef HAVE_SHM compilation bug fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3281 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'linux')
-rw-r--r--linux/shmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/shmem.c b/linux/shmem.c
index 9405053f03..69b2414197 100644
--- a/linux/shmem.c
+++ b/linux/shmem.c
@@ -59,8 +59,8 @@ while(1){
if(p==MAP_FAILED) break; // failed
mp_dbg(MSGT_OSDEP, MSGL_DBG2, "shmem: %d bytes allocated using mmap /dev/zero (%p)\n",size,p);
return p;
-#ifdef HAVE_SHM
case 2: { // ========= shmget() ==========
+#ifdef HAVE_SHM
struct shmid_ds shmemds;
int shmemid;
if ((shmemid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600)) == -1) break;
@@ -80,7 +80,7 @@ while(1){
mp_msg(MSGT_OSDEP, MSGL_FATAL, "shmem: no SHM support was compiled in!\n");
return(NULL);
#endif
- }
+ }
default:
mp_msg(MSGT_OSDEP, MSGL_FATAL,
"FATAL: Cannot allocate %d bytes of shared memory :(\n",size);