From be3e2f9d2d9c88b3a50c19636b924ac58e68c516 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 7 Aug 2019 12:51:28 +0300 Subject: update watcom config file. also a tiny change to nasm_file_exists() so that it builds with c89 compilers. Signed-off-by: H. Peter Anvin (Intel) --- config/watcom.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'config') diff --git a/config/watcom.h b/config/watcom.h index 029a36f8..1ef2ee74 100644 --- a/config/watcom.h +++ b/config/watcom.h @@ -49,6 +49,9 @@ #define HAVE_DECL_STRNCASECMP 1 #define HAVE_DECL_STRNICMP 1 #define HAVE_INTTYPES_H 1 +#ifndef __LINUX__ +#define HAVE_IO_H 1 +#endif #define HAVE_LIMITS_H 1 #define HAVE_MEMORY_H 1 #define HAVE_SNPRINTF 1 @@ -71,4 +74,16 @@ #define STDC_HEADERS 1 #define inline __inline +#define HAVE_ACCESS +#define HAVE_STRUCT_STAT +#define HAVE_STAT +#define HAVE_FSTAT +#define HAVE_FILENO +#ifdef __LINUX__ +#define HAVE_FTRUNCATE +#else +#define HAVE_CHSIZE +#define HAVE__CHSIZE +#endif + #endif /* NASM_CONFIG_WATCOM_H */ -- cgit v1.2.1