aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-13 03:45:03 +0000
committerYang Tse <yangsita@gmail.com>2008-09-13 03:45:03 +0000
commit89367d47a87e8bead28e229d6822718b987fac95 (patch)
tree5dfe70ea54dea63addeeada7b4c42526a15f6053 /lib/memdebug.h
parent7fdfd938e0646f01df8a2fc1e8830e7dc7451a84 (diff)
Disable tracking of fdopen() calls in the low-level memory leak tracking
code when fdopen() is not available, to avoid compiler error.
Diffstat (limited to 'lib/memdebug.h')
-rw-r--r--lib/memdebug.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/memdebug.h b/lib/memdebug.h
index 4e50ad1bb..8bfcc63b3 100644
--- a/lib/memdebug.h
+++ b/lib/memdebug.h
@@ -8,7 +8,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, 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
@@ -67,8 +67,10 @@ CURL_EXTERN int curl_accept(int s, void *addr, void *addrlen,
/* FILE functions */
CURL_EXTERN FILE *curl_fopen(const char *file, const char *mode, int line,
const char *source);
+#ifdef HAVE_FDOPEN
CURL_EXTERN FILE *curl_fdopen(int filedes, const char *mode, int line,
const char *source);
+#endif
CURL_EXTERN int curl_fclose(FILE *file, int line, const char *source);
#ifndef MEMDEBUG_NODEFINES