File po-utils-0.5.diff of Package po-utils

Index: lib/hash.c
===================================================================
--- lib/hash.c.orig
+++ lib/hash.c
@@ -39,7 +39,7 @@ typedef enum {false = 0, true = 1} bool;
 void free ();
 #endif
 #if !HAVE_DECL_MALLOC
-char *malloc ();
+void *malloc ();
 #endif
 
 #if USE_OBSTACK
Index: src/xpot.h
===================================================================
--- src/xpot.h.orig
+++ src/xpot.h
@@ -40,6 +40,7 @@ enum language
 {
   LANGUAGE_UNKNOWN,		/* not recognised yet */
   LANGUAGE_AWK,			/* awk script */
+#undef LANGUAGE_C /* Losing Alpha defines this.  */
   LANGUAGE_C,			/* C source */
   LANGUAGE_ELISP,		/* Emacs LISP */
   LANGUAGE_PERL,		/* Perl script */
@@ -78,7 +79,11 @@ extern char *yytext;
 #else
 extern yytext[];
 #endif
-extern int yyleng;
+#ifndef YY_TYPEDEF_YY_SIZE_T
+#define YY_TYPEDEF_YY_SIZE_T
+typedef size_t yy_size_t;
+#endif
+extern yy_size_t yyleng;
 
 extern bool translatable_flag;
 
openSUSE Build Service is sponsored by