gv/gv-3.5.8-gcc4.patch

41 lines
1.1 KiB
Diff

--- source/misc.c
+++ source/misc.c 2005-04-13 16:48:09.631599707 +0000
@@ -1479,6 +1479,7 @@
XtSetValues(pagemediaButton, args, ONE);
out:
ENDMESSAGE(set_pagemediaButton_label)
+ return; /* For stupid compilers like gcc4 */
}
/*------------------------------------------------------------*/
--- source/ps.c
+++ source/ps.c 2005-04-13 16:53:53.003469239 +0000
@@ -163,7 +163,8 @@
static char *readline PT((FileData, char **, long *, unsigned int *));
static char *gettextline PT((char *));
-static char *gettext PT((char *,char **));
+#define gettext(a, b) _gettext(a, b)
+static char *_gettext PT((char *,char **));
static int blank PT((char *));
static char *pscopyuntil PT((FileData,FILE *,long,long,char *));
--- source/signal.c
+++ source/signal.c 2005-04-13 16:54:16.178883017 +0000
@@ -39,6 +39,7 @@
# include <sys/stat.h>
# include <unistd.h>
#endif
+#include <stdlib.h>
#include "paths.h"
#include INC_X11(Intrinsic.h)
@@ -55,6 +56,7 @@
#endif
#include "types.h"
+#include "config.h"
#include "callbacks.h"
#include "d_memdebug.h"
#include "main_resources.h"