security/libbeid: Add <stdlib.h> header for malloc

The existing patch removed "<malloc.h>" but didn't provide "<stdlib.h>".
Adjust to compound patch to fix that oversight.

FWIW, the extra work to partially fix a patch is one reason I don't like
one-patch-many-files.  It's not the only reason.
This commit is contained in:
John Marino 2014-09-30 18:34:58 +00:00
parent a26180ae4b
commit 2ab3cf8b2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=369654

View File

@ -36,14 +36,15 @@ Index: common/src/datafile.cpp
}
Index: common/src/logbase.cpp
===================================================================
--- common/src/logbase.cpp (revision 1614)
+++ common/src/logbase.cpp (working copy)
@@ -29,12 +29,7 @@
--- common/src/logbase.cpp.orig 2014-09-30 18:10:35 UTC
+++ common/src/logbase.cpp
@@ -29,12 +29,8 @@
#include "mw_util.h"
#ifndef WIN32
-#include <malloc.h>
-#ifdef LINUX
+#include <stdlib.h>
#include "wintypes.h"
-#else
-#include "PCSC/wintypes.h"
@ -51,7 +52,7 @@ Index: common/src/logbase.cpp
#include "sys/stat.h"
#include "util.h"
@@ -575,6 +570,7 @@ bool CLog::open(bool bWchar)
@@ -575,6 +571,7 @@ bool CLog::open(bool bWchar)
else
err = fopen_s(&m_f,utilStringNarrow(filename).c_str(),"a");
#else