summaryrefslogtreecommitdiff
path: root/devel/mit-pthreads/patches/patch-ap
blob: 53f7ed27a4b6f563feedb628fdb5ac8f91cdcf5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ap,v 1.2 1998/12/28 23:31:37 bad Exp $

--- pthreads/fd.c.orig	Sun Jul  7 05:58:47 1996
+++ pthreads/fd.c	Tue Dec 29 00:13:33 1998
@@ -49,6 +49,7 @@
 #include <sys/stat.h>
 #include <sys/uio.h>
 #include <stdarg.h>
+#include <string.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <pthread/posix.h>
@@ -565,7 +566,7 @@
  */
 off_t lseek(int fd, off_t offset, int whence)
 {
-	int ret;
+	off_t ret;
 
 	 if ((ret = fd_lock(fd, FD_RDWR, NULL)) == OK) {
      	ret = fd_table[fd]->ops->seek(fd_table[fd]->fd,