freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: "Craig A. Berry" <craigberry AT mac.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: [freetds] [PATCH] alloca for VMS
- Date: Fri, 30 May 2014 13:30:26 -0500
We are now using alloca, which doesn't exist as a function on VMS,
but it's available as a builtin.
---
vms/config_h.vms | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/vms/config_h.vms b/vms/config_h.vms
index b666783..6d891e6 100644
--- a/vms/config_h.vms
+++ b/vms/config_h.vms
@@ -391,4 +391,8 @@ char * readpassphrase(const char *, char *, size_t, int);
/* Prototype for routine to convert VMS-style arguments to Unix-style. */
int parse_vms_args(int *argc, char **argv[]);
+/* alloca is a built-in */
+#include <builtins.h>
+#define alloca(__x) __ALLOCA(__x)
+
#endif /* CONFIG_H_LOADED */
--
1.8.4.2
________________________________________
Craig A. Berry
mailto:craigberry AT mac.com
"... getting out of a sonnet is much more
difficult than getting in."
Brad Leithauser
Attachment:
0001-alloca-for-VMS.patch
Description: Binary data
- [freetds] [PATCH] alloca for VMS, Craig A. Berry, 05/30/2014
Archive powered by MHonArc 2.6.24.