bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gzip 1.6 v. Tru64 and VMS


From: Paul Eggert
Subject: Re: Gzip 1.6 v. Tru64 and VMS
Date: Tue, 11 Jun 2013 19:55:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6

On 06/11/2013 04:01 PM, Steven M. Schweda wrote:
>    On Tru64, using a vendor-supplied C compiler, ...

>   CC       getcwd-lgpl.o
> cc: Warning: getcwd-lgpl.c, line 59: In this statement, "malloc(...)" of type 
> "i
> nt", is being converted to "pointer to char". (cvtdiftypes)

Thanks, for that problem I installed the following gnulib patch.
There's no need for HAVE_STDLIB_H these days, as we're
assuming C89 or better now for that sort of thing.

>From 7dda1aad6527b4781423580861e1463040db251c Mon Sep 17 00:00:00 2001
From: Paul Eggert <address@hidden>
Date: Tue, 11 Jun 2013 19:52:46 -0700
Subject: [PATCH] getcwd-lgpl: port to Tru64

* lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
Problem reported by Steven M. Schweda in
<http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
---
 ChangeLog         | 5 +++++
 lib/getcwd-lgpl.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index aeb1bc5..06777de 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-06-11  Paul Eggert  <address@hidden>
 
+       getcwd-lgpl: port to Tru64
+       * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
+       Problem reported by Steven M. Schweda in
+       <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
+
        tests: port large-fd POSIX spawn tests to OS X
        Problem reported by Daiki Ueno in
        <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
diff --git a/lib/getcwd-lgpl.c b/lib/getcwd-lgpl.c
index d550f35..cebe8f7 100644
--- a/lib/getcwd-lgpl.c
+++ b/lib/getcwd-lgpl.c
@@ -20,6 +20,7 @@
 #include <unistd.h>
 
 #include <errno.h>
+#include <stdlib.h>
 #include <string.h>
 
 #if GNULIB_GETCWD
-- 
1.7.11.7





reply via email to

[Prev in Thread] Current Thread [Next in Thread]