You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
7a997aa4b9
New port, https://trac.macports.org/ticket/26139 git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@71266 d073be05-634f-4543-b044-5fe20cf6d1d6
64 lines
1.4 KiB
Plaintext
64 lines
1.4 KiB
Plaintext
--- buffer.c.org 2010-08-18 14:37:21.000000000 +0200
|
|
+++ buffer.c 2010-08-18 15:02:36.000000000 +0200
|
|
@@ -109,6 +109,9 @@
|
|
* Initial revision
|
|
*
|
|
*/
|
|
+
|
|
+#include <stdlib.h>
|
|
+#include <strings.h>
|
|
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <signal.h>
|
|
@@ -126,10 +129,6 @@
|
|
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 $";
|
|
#endif
|
|
|
|
-#ifndef __alpha
|
|
-extern char *shmat();
|
|
-#endif /* __alpha */
|
|
-
|
|
/* General macros */
|
|
#define TRUE 1
|
|
#define FALSE 0
|
|
@@ -507,9 +506,9 @@
|
|
get_buffer();
|
|
|
|
if( debug )
|
|
- fprintf( stderr, "%s pbuffer is 0x%08x, buffer_size is %d [%d x %d]\n",
|
|
+ fprintf( stderr, "%s pbuffer is 0x%p, buffer_size is %d [%d x %d]\n",
|
|
proc_string,
|
|
- (char *)pbuffer, buffer_size, blocks, blocksize );
|
|
+ (void *)pbuffer, buffer_size, blocks, blocksize );
|
|
|
|
#ifdef SYS5
|
|
memset( (char *)pbuffer, '\0', buffer_size );
|
|
@@ -648,7 +647,7 @@
|
|
int
|
|
fill_block()
|
|
{
|
|
- int bytes;
|
|
+ int bytes = 0;
|
|
char *start;
|
|
int toread;
|
|
static char eof_reached = 0;
|
|
--- sem.c.org 2010-08-18 15:03:14.000000000 +0200
|
|
+++ sem.c 2010-08-18 15:04:15.000000000 +0200
|
|
@@ -27,6 +27,7 @@
|
|
* semaphores */
|
|
|
|
#include <stdio.h>
|
|
+#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <sys/stat.h>
|
|
#include <sys/ipc.h>
|
|
@@ -95,7 +96,7 @@
|
|
return sem;
|
|
}
|
|
|
|
-static
|
|
+static void
|
|
do_sem( sem_id, pbuf, err )
|
|
int sem_id;
|
|
struct sembuf *pbuf;
|