3 2

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

Pierre Carrier
Details
Message ID
<1366243176-18937-1-git-send-email-pierre@gcarrier.fr>
Sender timestamp
1366243175
DKIM signature
missing
Download raw message
Patch: +2 -2
---
 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:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

[alpine-devel] [PATCH 2/2] apk_hash.h: include stddef.h

Pierre Carrier
Details
Message ID
<1366243176-18937-2-git-send-email-pierre@gcarrier.fr>
In-Reply-To
<1366243176-18937-1-git-send-email-pierre@gcarrier.fr> (view parent)
Sender timestamp
1366243176
DKIM signature
missing
Download raw message
Patch: +1 -0
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



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa
Details
Message ID
<20130418084421.1fd84767@ncopa-desktop.alpinelinux.org>
In-Reply-To
<1366243176-18937-1-git-send-email-pierre@gcarrier.fr> (view parent)
Sender timestamp
1366267461
DKIM signature
missing
Download raw message
On Thu, 18 Apr 2013 01:59:35 +0200
Pierre Carrier <pierre@gcarrier.fr> wrote:

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

Compile tested on x86 and x86_64 and applied.

Thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

Re: [alpine-devel] [PATCH 2/2] apk_hash.h: include stddef.h

Natanael Copa
Details
Message ID
<20130418084445.53849ec2@ncopa-desktop.alpinelinux.org>
In-Reply-To
<1366243176-18937-2-git-send-email-pierre@gcarrier.fr> (view parent)
Sender timestamp
1366267485
DKIM signature
missing
Download raw message
On Thu, 18 Apr 2013 01:59:36 +0200
Pierre Carrier <pierre@gcarrier.fr> wrote:

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

Applied thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---