diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:30:03 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2011-02-13 20:30:03 +0200 |
commit | 32086b1f52a9978db1e8168b56a312e76afcf5ab (patch) | |
tree | de490c1c7d47bcbc6428d622957240679483d6b6 /awk.h | |
parent | 6bfbae33e99c401f89a4d650ea7958bbdebd362e (diff) | |
download | egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.tar.gz egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.tar.bz2 egawk-32086b1f52a9978db1e8168b56a312e76afcf5ab.zip |
PC fixes for portability and dependencies.
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |