summaryrefslogtreecommitdiff
path: root/databases/mysql-server/patches/patch-aj
blob: f42e01e2acb713036ac5cf845bbbab939bb4bfbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-aj,v 1.1.1.1 1999/05/06 23:37:01 tv Exp $
--- mit-pthreads/pthreads/fd.c.orig	Tue Jan 13 06:28:04 1998
+++ mit-pthreads/pthreads/fd.c	Mon Dec 28 23:50:16 1998
@@ -44,6 +44,7 @@
 
 #include <pthread.h>
 #include <stdlib.h>
+#include <string.h>
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -702,7 +703,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,