Mercurial > mplayer.hg
changeset 3280:542f7c228e38
undef HAVE_SHM compilation bug fixed
author | alex |
---|---|
date | Mon, 03 Dec 2001 14:37:26 +0000 |
parents | d6ea11bed983 |
children | 310c0b9bea21 |
files | linux/shmem.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/linux/shmem.c Mon Dec 03 14:05:02 2001 +0000 +++ b/linux/shmem.c Mon Dec 03 14:37:26 2001 +0000 @@ -59,8 +59,8 @@ 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; + case 2: { // ========= shmget() ========== #ifdef HAVE_SHM - case 2: { // ========= shmget() ========== struct shmid_ds shmemds; int shmemid; if ((shmemid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0600)) == -1) break; @@ -80,7 +80,7 @@ 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);