aboutsummaryrefslogtreecommitdiff
path: root/src/tool_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tool_main.c')
-rw-r--r--src/tool_main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tool_main.c b/src/tool_main.c
index 00a241032..95e9cc779 100644
--- a/src/tool_main.c
+++ b/src/tool_main.c
@@ -45,6 +45,16 @@
*/
#include "memdebug.h" /* keep this as LAST include */
+#ifdef __VMS
+/*
+ * vms_show is a global variable, used in main() as parameter for
+ * function vms_special_exit() to allow proper curl tool exiting.
+ * Its value may be set in other tool_*.c source files thanks to
+ * forward declaration present in tool_vms.h
+ */
+static int vms_show = 0;
+#endif
+
/*
* Ensure that file descriptors 0, 1 and 2 (stdin, stdout, stderr) are
* open before starting to run. Otherwise, the first three network