Subject: [alpine-devel] [PATCH 1/2] *.c: malloc.h->stdlib.h

From: Pierre Carrier <[email-masked]>
Date: Thu, 18 Apr 2013 01:59:35 +0200

---
 src/apk_hash.h | 2 +-
 src/archive.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/apk_hash.h b/src/apk_hash.h
index 92061e9..0184f14 100644
--- a/src/apk_hash.h
+++ b/src/apk_hash.h
@@ -12,7 +12,7 @@
 #ifndef APK_HASH_H
 #define APK_HASH_H
 
-#include <malloc.h>
+#include <stdlib.h>
 #include "apk_defines.h"
 #include "apk_blob.h"
 
diff --git a/src/archive.c b/src/archive.c
index 8511549..1ab7961 100644
--- a/src/archive.c
+++ b/src/archive.c
@@ -15,7 +15,6 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <utime.h>
-#include <malloc.h>
 #include <string.h>
 #include <unistd.h>
 #include <sysexits.h>
@@ -23,6 +22,7 @@
 #include <sys/stat.h>
 #include <limits.h>
 #include <stdint.h>
+#include <stdlib.h>
 
 #include "apk_defines.h"
 #include "apk_print.h"
-- 
1.8.2.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Pierre Carrier <[email-masked]>
Date: Thu, 18 Apr 2013 01:59:36 +0200

Needed for ptrdiff_t in some libcs.
---
 src/apk_hash.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/apk_hash.h b/src/apk_hash.h
index 0184f14..8fad7f7 100644
--- a/src/apk_hash.h
+++ b/src/apk_hash.h
@@ -13,6 +13,7 @@
 #define APK_HASH_H
 
 #include <stdlib.h>
+#include <stddef.h>
 #include "apk_defines.h"
 #include "apk_blob.h"
 
-- 
1.8.2.1

---