diff options
| author | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-29 16:06:00 +0100 |
|---|---|---|
| committer | Waldemar Brodkorb <wbx@openadk.org> | 2013-11-29 16:06:00 +0100 |
| commit | 8e8512391c668fc7074f812f15eabe8f176fb01e (patch) | |
| tree | f9f0862dd6eb962fe3fc4803180b431843f6c5be /package/m4/patches/patch-lib_freadahead_h | |
| parent | c491653a1f9574a42965025805d472c3d145f699 (diff) | |
| parent | ae3d4616ed9c19a29d656193254657f93d612fa2 (diff) | |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/m4/patches/patch-lib_freadahead_h')
| -rw-r--r-- | package/m4/patches/patch-lib_freadahead_h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/package/m4/patches/patch-lib_freadahead_h b/package/m4/patches/patch-lib_freadahead_h deleted file mode 100644 index fa7a8a1fa..000000000 --- a/package/m4/patches/patch-lib_freadahead_h +++ /dev/null @@ -1,38 +0,0 @@ ---- m4-1.4.16.orig/lib/freadahead.h 2011-03-01 17:39:27.000000000 +0100 -+++ m4-1.4.16/lib/freadahead.h 2013-09-04 13:59:50.000000000 +0200 -@@ -17,9 +17,6 @@ - #include <stddef.h> - #include <stdio.h> - --#ifdef __cplusplus --extern "C" { --#endif - - /* Assuming the stream STREAM is open for reading: - Return the number of bytes waiting in the input buffer of STREAM. -@@ -31,8 +28,25 @@ extern "C" { - - STREAM must not be wide-character oriented. */ - -+ -+#if HAVE___FREADAHEAD || (defined(__linux__) && !defined(__GLIBC__) && !defined(__UCLIBC__)) /* musl libc */ -+#ifndef HAVE___FREADAHEAD -+#define HAVE___FREADAHEAD 1 -+#endif -+ -+#include <stdio_ext.h> -+#define freadahead(stream) __freadahead (stream) -+ -+#else -+ -+#ifdef __cplusplus -+extern "C" { -+#endif -+ - extern size_t freadahead (FILE *stream); - - #ifdef __cplusplus - } - #endif -+ -+#endif |
