File SLE11_NO_PREAD.patch of Package libowfat

diff -Nur libowfat-0.31.orig/GNUmakefile libowfat-0.31/GNUmakefile
--- libowfat-0.31.orig/GNUmakefile	2016-10-02 01:07:35.000000000 +0200
+++ libowfat-0.31/GNUmakefile	2016-11-28 11:54:23.351910221 +0100
@@ -306,7 +306,8 @@
 
 havepread.h: trypread.c
 	-rm -f $@
-	if $(DIET) $(CCC) $(CFLAGS) -c trypread.c >/dev/null 2>&1; then echo "#define HAVE_PREAD"; fi > $@
+#	if $(DIET) $(CCC) $(CFLAGS) -c trypread.c >/dev/null 2>&1; then echo "#define HAVE_PREAD"; fi > $@
+	echo "#undef HAVE_PREAD" > $@
 	-rm -f trypread.o
 
 iopause.h: iopause.h1 iopause.h2 trypoll.c
openSUSE Build Service is sponsored by