From 32086b1f52a9978db1e8168b56a312e76afcf5ab Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 13 Feb 2011 20:30:03 +0200 Subject: PC fixes for portability and dependencies. --- awk.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'awk.h') diff --git a/awk.h b/awk.h index 93822bde..4bc4983a 100644 --- a/awk.h +++ b/awk.h @@ -163,6 +163,11 @@ typedef int off_t; #define O_BINARY 0 #endif +/* Windows needs a separate definition, see pc/config.h. */ +#ifndef ISATTY +# define ISATTY(fd) isatty(fd) +#endif + #ifndef HAVE_VPRINTF #error "you lose: you need a system with vfprintf" #endif /* HAVE_VPRINTF */ @@ -1122,7 +1127,7 @@ extern INSTRUCTION *bcalloc(OPCODE op, int size, int srcline); extern void bcfree(INSTRUCTION *); extern SRCFILE *add_srcfile(int stype, char *src, SRCFILE *curr, int *already_included, int *errcode); extern void register_deferred_variable(const char *name, NODE *(*load_func)(void)); -extern int files_are_same(struct stat *f1, struct stat *f2); +extern int files_are_same(char *path, SRCFILE *src); extern void valinfo(NODE *n, Func_print print_func, FILE *fp); extern void print_vars(Func_print print_func, FILE *fp); extern AWK_CONTEXT *new_context(void); -- cgit v1.2.3