Changeset 1188 in ProjectBuilder for projects/buffer
- Timestamp:
- Feb 15, 2011, 2:32:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/buffer/pbconf/1.19/buffer/pbpatch/01-debian-patches.all
r551 r1188 2 2 --- buffer-1.19.orig/buffer.c 2000-01-04 03:46:11.000000000 +0100 3 3 +++ buffer-1.19/buffer.c 2008-09-20 01:19:18.000000000 +0200 4 @@ - 81,7 +81,7 @@4 @@ -78,7 +78,7 @@ 5 5 * Christoph Wicki <wicki@iis.ethz.ch> 6 6 * … … 11 11 * Revision 1.6 1992/04/07 19:57:30 lmjm 12 12 * Added Kevins -B and -p options. 13 @@ -9 6,7 +96,7 @@13 @@ -93,7 +93,7 @@ 14 14 * Make sofar printing size an option. 15 15 * … … 20 20 * Now tries to fill this with blocks. 21 21 * reader waits for writer to terminate and then frees the shared mem and sems. 22 @@ -1 12,6 +112,9 @@22 @@ -109,6 +109,9 @@ 23 23 * Initial revision 24 24 * … … 30 30 #include <stdio.h> 31 31 #include <signal.h> 32 @@ -12 3,15 +126,16 @@32 @@ -120,17 +123,16 @@ 33 33 #include <sys/shm.h> 34 34 #include <sys/sem.h> … … 38 38 39 39 #ifndef lint 40 static char *rcsid = "$Header: / usr/src/build/buffer/buffer.c,v 1.1 2000/01/04 02:45:48 root Exp$";40 static char *rcsid = "$Header: /a/swan/home/swan/staff/csg/lmjm/src/buffer/RCS/buffer.c,v 1.19 1995/08/24 17:46:28 lmjm Exp lmjm $"; 41 41 #endif 42 42 43 43 -#ifndef __alpha 44 +#ifndef __linux__ 44 -#ifndef __ia64 45 +#ifndef __linux 45 46 extern char *shmat(); 47 -#endif /* __ia64 */ 46 48 -#endif /* __alpha */ 47 +#endif /* __linux __*/49 +#endif /* __linux */ 48 50 49 51 /* General macros */ … … 545 547 return; 546 548 547 - if( semctl( sem_id, 0, IPC_RMID, NULL) == -1 ){549 - if( semctl( sem_id, 0, IPC_RMID, (union semun)0 ) == -1 ){ 548 550 + arg.val = 0; 549 551 + if( semctl( sem_id, 0, IPC_RMID, arg ) == -1 ){
Note:
See TracChangeset
for help on using the changeset viewer.