Bug 1112249: don't include malloc.h on OpenBSD, one should use stdlib.h r=standard8
authorLandry Breuil <landry@openbsd.org>
Tue, 16 Dec 2014 21:59:07 +0100
changeset 40 91917f608ab8
parent 39 badd67031f9e
child 41 cfc95f7a6206
push id27
push userlandry@openbsd.org
push dateTue, 16 Dec 2014 20:59:40 +0000
reviewersstandard8
bugs1112249
Bug 1112249: don't include malloc.h on OpenBSD, one should use stdlib.h r=standard8
c-sdk/ldap/libraries/liblber/lber-int.h
--- a/c-sdk/ldap/libraries/liblber/lber-int.h
+++ b/c-sdk/ldap/libraries/liblber/lber-int.h
@@ -58,17 +58,17 @@ extern "C" {
 #include <stdio.h>
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdlib.h>
 
 #ifdef macintosh
 # include "ldap-macos.h"
 #else /* macintosh */
-#if !defined(BSDI) && !defined(DARWIN) && !defined(FREEBSD)
+#if !defined(BSDI) && !defined(DARWIN) && !defined(FREEBSD) && !defined(OPENBSD)
 # include <malloc.h>
 #endif
 # include <errno.h>
 # include <sys/types.h>
 #if defined(SUNOS4) || defined(SCOOS)
 # include <sys/time.h>
 #endif
 #if defined( _WINDOWS )