From c69d4c95bf2027252e13e4dec3fb2dcfd10fc4e7 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 21 Jul 1999 16:06:18 +0000 Subject: * Installed VMS fixes. --- config.h-vms.template | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'config.h-vms.template') 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 +#include +#include + /* 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 +#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 -- cgit v1.2.3