Commit 50f5f636 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

r14091@catbus: nickm | 2007-08-08 01:13:17 -0400

 Fix an annoying warning on OpenBSD: only include malloc.h if we are using it.


svn:r11059
parent 9d2b1004
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -68,6 +68,9 @@ const char util_c_id[] = "$Id$";
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#if defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO)
#include <malloc.h>
#endif

#ifndef O_BINARY
#define O_BINARY 0
+0 −3
Original line number Diff line number Diff line
@@ -23,9 +23,6 @@
#ifdef HAVE_TIME_H
#include <time.h>
#endif
#ifdef HAVE_MALLOC_H
#include <malloc.h>
#endif

/* Replace assert() with a variant that sends failures to the log before
 * calling assert() normally.