aboutsummaryrefslogtreecommitdiff
path: root/src/os-specific.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2011-09-14 11:27:12 +0200
committerYang Tse <yangsita@gmail.com>2011-09-14 11:30:22 +0200
commit90080da5fefe943aec5aa0b9c08510dc1dd48be3 (patch)
tree56b7d4e90e481dbe7aff0bd5f72cb1f8b8e13925 /src/os-specific.c
parent0216e517d07f6409534a222b69d550844aeeb4d8 (diff)
curl tool: re-enable MemoryTracking capability on 'src' subdirectory files.
Use same preprocessor logic for curl tool MemoryTracking activation in source files located in 'src' subdirectory as the one used for libcurl sources.
Diffstat (limited to 'src/os-specific.c')
-rw-r--r--src/os-specific.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/os-specific.c b/src/os-specific.c
index ac07c4cec..f95871761 100644
--- a/src/os-specific.c
+++ b/src/os-specific.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -21,20 +21,22 @@
***************************************************************************/
#include "setup.h"
+#ifdef __VMS
+
+#if defined(__DECC) && !defined(__VAX) && \
+ defined(__CRTL_VER) && (__CRTL_VER >= 70301000)
+#include <unixlib.h>
+#endif
+
#include <curl/curl.h>
#define ENABLE_CURLX_PRINTF
#include "curlx.h"
+#include "curlmsg_vms.h"
#include "os-specific.h"
-#if defined(CURLDEBUG) && defined(CURLTOOLDEBUG)
-# include "memdebug.h"
-#endif
-
-#ifdef __VMS
-
-#include "curlmsg_vms.h"
+#include "memdebug.h" /* keep this as LAST include */
void decc$__posix_exit(int __status);
void decc$exit(int __status);
@@ -121,8 +123,6 @@ void vms_special_exit(int code, int vms_show)
* requiring the user to define the corresponding logical names.
*/
-#include <unixlib.h>
-
/* Structure to hold a DECC$* feature name and its desired value. */
typedef struct {
char *name;