summaryrefslogtreecommitdiff
path: root/audio/gramofile/files/patch-bplaysrc_shmbuf.c
blob: 26e42e069eb36c5193189961a0cde3dd6c07e1b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- bplaysrc/shmbuf.c.orig	2000-03-27 21:38:56 UTC
+++ bplaysrc/shmbuf.c
@@ -142,6 +142,7 @@ void init_shm(void)
     if(shmctl(shmid2, IPC_RMID, NULL))
 	ErrDie("shmctl");
 
+#ifndef __DragonFly__
 #if USEBUFFLOCK
 	/* Ok, go root to lock the buffers down */
     if(setreuid(geteuid(), getuid()) == -1)
@@ -173,6 +174,7 @@ void init_shm(void)
     }
 
 #endif
+#endif
     /* Set up the appropriate number of semaphore blocks */
     numsemblks = numbuffs/SEMMSL;
     if((numsemblks * SEMMSL) < numbuffs)