summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-26 20:31:25 -0500
committerDan McGee <dan@archlinux.org>2007-10-26 20:31:25 -0500
commita8731ff2f7be564b745a4447df9c2157c5ee0777 (patch)
treeac2732cd62fbcbcfb4d995fe14beae049261be21 /src
parentb38e046621e173a1194eb354e6b8d2525fa60242 (diff)
Fix mcheck detection and usage
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 705edafa..05ae8d13 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -32,7 +32,7 @@
#include <sys/utsname.h> /* uname */
#include <locale.h> /* setlocale */
#include <time.h> /* time_t */
-#if defined(PACMAN_DEBUG) && defined(HAVE_MTRACE)
+#if defined(PACMAN_DEBUG) && defined(HAVE_MCHECK_H)
#include <mcheck.h> /* debug tracing (mtrace) */
#endif
@@ -720,7 +720,7 @@ int main(int argc, char *argv[])
uid_t myuid = geteuid();
#endif
-#if defined(PACMAN_DEBUG) && defined(HAVE_MTRACE)
+#if defined(PACMAN_DEBUG) && defined(HAVE_MCHECK_H)
/*setenv("MALLOC_TRACE","pacman.mtrace", 0);*/
mtrace();
#endif