[freetds] [PATCH] alloca for VMS

Craig A. Berry craigberry at mac.com
Fri May 30 14:30:26 EDT 2014


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-alloca-for-VMS.patch
Type: application/octet-stream
Size: 814 bytes
Desc: not available
URL: <http://lists.ibiblio.org/pipermail/freetds/attachments/20140530/d2437cad/attachment-0001.obj>


More information about the FreeTDS mailing list