File uni2ascii-fix_missing_headers.patch of Package uni2ascii

--- uni2ascii.c.orig	2011-02-17 10:15:17.000000000 +0100
+++ uni2ascii.c	2011-02-17 10:18:05.000000000 +0100
@@ -68,6 +68,8 @@
 #include <gnu/libc-version.h>
 #endif
 
+extern void putu8(wchar_t);
+
 void
 ShowVersion(FILE *fp)   
 {
@@ -2680,7 +2682,7 @@
  * search may be advisable. For the time being we just do a linear search.
  */
 
-SubstituteChar(UTF32 c) {
+int SubstituteChar(UTF32 c) {
   int i;
   for(i = 0; i < SubCnt; i++) {
     if(c == SubList[i].u) {
@@ -2694,7 +2696,7 @@
   return 0;
 }
 
-AddCustomSubstitution(char *str){
+void AddCustomSubstitution(char *str){
   char *Left;
   char *Right;
   char *Delim;
--- enttbl.c.orig	2011-02-17 10:16:16.000000000 +0100
+++ enttbl.c	2011-02-17 10:16:51.000000000 +0100
@@ -20,6 +20,7 @@
 
 #include "config.h"
 #include <stdlib.h>
+#include <string.h>
 #include "unicode.h"
 
 struct ent {
--- ascii2uni.c.orig	2011-02-17 10:18:10.000000000 +0100
+++ ascii2uni.c	2011-02-17 10:18:25.000000000 +0100
@@ -249,7 +249,7 @@
   extern int optopt;
   extern unsigned long GetWordLineNo;
 
-  extern void putu8 (unsigned long);
+  extern void putu8 (wchar_t);
   extern char * Get_Word(FILE *, int *, int *);
   extern int CountSlots(char *);
   extern void ListFormatArguments(short);
openSUSE Build Service is sponsored by