File bstrip-includes.diff of Package webif

Index: webif/src/bstrip.c
===================================================================
--- webif.orig/src/bstrip.c
+++ webif/src/bstrip.c
@@ -1,5 +1,8 @@
 #include <stdio.h>
+#include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
 
 #define BUF_SIZE 1024
 #define READ_LEN 14
 
@@ -41,9 +44,9 @@ int do_gets(char *buf)
 
 int
 #ifdef _METAPACK
 bstrip_main
-#else
+#else
 main
 #endif
 (int argc, char **argv)
 {
@@ -75,5 +78,6 @@ main
 	}
 
 	if (r1 > 2)
 		write(1, buf1, r1 - 2);
+	return 0;
 }
openSUSE Build Service is sponsored by