From fedf13635bb26dcb8713a59d9ae2d6f2db04c164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Wed, 25 Mar 1998 21:37:50 -0800 Subject: [PATCH] bugfixes Rev: bin/export.pike:1.17 Rev: src/fd_control.c:1.15 Rev: src/global.h:1.19 Rev: src/interpret.c:1.71 --- bin/export.pike | 4 ++-- src/fd_control.c | 3 ++- src/global.h | 1 + src/interpret.c | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/export.pike b/bin/export.pike index 3d34106d45..48d1da91e1 100755 --- a/bin/export.pike +++ b/bin/export.pike @@ -1,6 +1,6 @@ #!/usr/local/bin/pike -/* $Id: export.pike,v 1.16 1998/03/25 04:41:51 hubbe Exp $ */ +/* $Id: export.pike,v 1.17 1998/03/26 05:37:30 hubbe Exp $ */ #include <simulate.h> @@ -93,7 +93,7 @@ int main(int argc, string *argv) sscanf(s,"%s release %d%s",string pre, int rel, string post); rel++; Stdio.File("pike/src/version.c","wct")->write(pre+" release "+rel+post); - system("cd pike/src ; cvs commit -m 'release number bumped by export.pike' version.c"); + system("cvs commit -m 'release number bumped by export.pike' src/version.c"); vpath=replace(getversion()," ","-"); string tag=replace(vpath,({"Pike-","."}),({"","_"})); diff --git a/src/fd_control.c b/src/fd_control.c index 941d62f751..4e26eef9b9 100644 --- a/src/fd_control.c +++ b/src/fd_control.c @@ -13,6 +13,7 @@ #include "fdlib.h" #else #undef DEBUG +#define fd_ioctl ioctl #endif #include "fd_control.h" @@ -50,7 +51,7 @@ int set_nonblocking(int fd,int which) fatal("Filedescriptor out of range.\n"); #endif -#if defined(USE_IOCTL_FIONBIO) || __NT__ +#if defined(USE_IOCTL_FIONBIO) || defined(__NT__) return fd_ioctl(fd, FIONBIO, &which); #else diff --git a/src/global.h b/src/global.h index 2e8eb85092..de4bd7f4d8 100644 --- a/src/global.h +++ b/src/global.h @@ -9,6 +9,7 @@ #ifndef _LARGEFILE_SOURCE # define _FILE_OFFSET_BITS 64 # define _LARGEFILE_SOURCE +# define _LARGEFILE64_SOURCE 1 #endif /* diff --git a/src/interpret.c b/src/interpret.c index 590e49c2f9..666a33f7f4 100644 --- a/src/interpret.c +++ b/src/interpret.c @@ -4,7 +4,7 @@ ||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h" -RCSID("$Id: interpret.c,v 1.70 1998/03/18 20:22:30 per Exp $"); +RCSID("$Id: interpret.c,v 1.71 1998/03/26 05:37:50 hubbe Exp $"); #include "interpret.h" #include "object.h" #include "program.h" @@ -1471,6 +1471,7 @@ static int eval_instruction(unsigned char *pc) default: fatal("Strange instruction %ld\n",(long)instr); } + } } -- GitLab