summaryrefslogtreecommitdiff
path: root/package/m4/patches/patch-lib_freadahead_c
blob: 5e2b3fd3e57ebb1215fe3885692f25ecb1fda8f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- m4-1.4.16.orig/lib/freadahead.c	2011-03-01 17:39:27.000000000 +0100
+++ m4-1.4.16/lib/freadahead.c	2013-09-04 13:53:26.000000000 +0200
@@ -22,6 +22,7 @@
 #include <stdlib.h>
 #include "stdio-impl.h"
 
+#ifndef HAVE___FREADAHEAD
 size_t
 freadahead (FILE *fp)
 {
@@ -83,3 +84,4 @@ freadahead (FILE *fp)
  #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
 #endif
 }
+#endif