undef HAVE_SHM compilation bug fixed

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3281 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2001-12-03 14:37:26 +00:00
parent f8aa180191
commit 81948eca1a
1 changed files with 2 additions and 2 deletions

View File

@ -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);