gettext-kde: fix FTBFS with gcc 15

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/42/head
Michele Calgaro 3 months ago
parent 8bb601895a
commit ef0c1702c0
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -0,0 +1,42 @@
--- a/intl/dcgettext.c
+++ b/intl/dcgettext.c
@@ -99,7 +99,7 @@
char *getwd ();
# define getcwd(buf, max) getwd (buf)
# else
-char *getcwd ();
+char *getcwd(char *, size_t);
# endif
# ifndef HAVE_STPCPY
static char *stpcpy PARAMS ((char *dest, const char *src));
--- a/lib/xgetcwd.c
+++ b/lib/xgetcwd.c
@@ -22,6 +22,7 @@
#endif
#include <stdio.h>
+#include <stdlib.h>
#include <errno.h>
#ifndef errno
extern int errno;
@@ -31,7 +32,7 @@
#include "pathmax.h"
#if HAVE_GETCWD
-char *getcwd ();
+char *getcwd (char *, size_t);
#else
char *getwd ();
# define getcwd(Buf, Max) getwd (Buf)
@@ -40,9 +41,8 @@
/* Amount to increase buffer size by in each try. */
#define PATH_INCR 32
-char *xmalloc ();
-char *xrealloc ();
-void free ();
+char *xmalloc (size_t n);
+char *xrealloc (void *p, size_t n);
/* Return the current directory, newly allocated, arbitrarily long.
Return NULL and set errno on error. */

@ -1,3 +1,4 @@
gettext-0.10.35.diff
automake-1.14.diff
remove-register-instruction.diff
fix-gcc15-ftbfs.diff

Loading…
Cancel
Save