mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
--- ups/xc_builtins.c.orig Thu Oct 1 12:30:57 1998
|
|
+++ ups/xc_builtins.c Fri Nov 13 20:08:21 1998
|
|
@@ -33,7 +33,11 @@
|
|
#include <ctype.h>
|
|
#include <errno.h>
|
|
|
|
-#if defined (OS_SUNOS_5) && defined (__CLCC__)
|
|
+#if defined(OS_BSD44)
|
|
+#include <sys/ioctl.h>
|
|
+#endif
|
|
+
|
|
+#if defined (OS_SUNOS_5) && defined (__CLCC__) || defined(OS_BSD44)
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
@@ -77,7 +81,7 @@
|
|
static int builtin_read PROTO((int fd, void *buf, size_t nbytes));
|
|
static int builtin_write PROTO((int fd, const void *buf, size_t nbytes));
|
|
static int builtin_pipe PROTO((int *fds));
|
|
-static int builtin_lseek PROTO((int fd, off_t offset, int whence));
|
|
+static off_t builtin_lseek PROTO((int fd, off_t offset, int whence));
|
|
static int builtin_fcntl PROTO((int fd, int cmd, char *arg));
|
|
static int builtin_dup2 PROTO((int fd, int newfd));
|
|
static int builtin_dup PROTO((int fd));
|
|
@@ -87,7 +91,7 @@
|
|
#ifdef BUILTIN_FLOCK
|
|
static int builtin_flock PROTO((int fd, int op));
|
|
#endif
|
|
-static int builtin_ftruncate PROTO((int fd, long length));
|
|
+static int builtin_ftruncate PROTO((int fd, off_t length));
|
|
static int builtin_ioctl PROTO((int fd, unsigned cmd, caddr_t arg));
|
|
static int builtin_fstat PROTO((int fd, struct stat *stbuf));
|
|
static Display *builtin_XOpenDisplay PROTO((const char *display_name));
|
|
@@ -298,7 +302,7 @@
|
|
static int
|
|
builtin_ftruncate(fd, length)
|
|
int fd;
|
|
-long length;
|
|
+off_t length;
|
|
{
|
|
return fd_ok(fd) ? ftruncate(fd, (off_t)length) : -1;
|
|
}
|
|
@@ -321,7 +325,7 @@
|
|
return res;
|
|
}
|
|
|
|
-static int
|
|
+static off_t
|
|
builtin_lseek(fd, offset, whence)
|
|
int fd;
|
|
off_t offset;
|