diff options
Diffstat (limited to 'config.h-vms.template')
-rw-r--r-- | config.h-vms.template | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/config.h-vms.template b/config.h-vms.template index dca4bda..4effc66 100644 --- a/config.h-vms.template +++ b/config.h-vms.template @@ -123,8 +123,12 @@ with this defined. */ /* #undef _POSIX_1_SOURCE */ +#include <sys/types.h> +#include <ctype.h> +#include <signal.h> + /* Define if you need to in order for stat and other things to work. */ -/* #undef _POSIX_SOURCE */ +#define _POSIX_C_SOURCE 1 /* Define as the return type of signal handlers (int or void). */ #define RETSIGTYPE void @@ -321,6 +325,14 @@ #define INCLUDEDIR "sys$sysroot:[syslib]" #define LIBDIR "sys$sysroot:[syslib]" +/* Avoid broken RTL functions on OpenVMS */ +#include <unixlib.h> +#define getopt gnu_getopt +#define optarg gnu_optarg +#define optopt gnu_optopt +#define optind gnu_optind +#define opterr gnu_opterr + #if defined (__cplusplus) || (defined (__STDC__) && __STDC__) #undef PARAMS #define PARAMS(protos) protos |