Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame^] | 1 | From 1fbee6e96384f340b816e221fe1c2f3ff0b487bf Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 8 Jun 2017 23:11:31 -0700 |
| 4 | Subject: [PATCH 2/3] Undefine open64 and fopen64 |
| 5 | |
| 6 | Since the signatures do not match with libc |
| 7 | |
| 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 9 | --- |
| 10 | esddsp.c | 2 ++ |
| 11 | 1 file changed, 2 insertions(+) |
| 12 | |
| 13 | diff --git a/esddsp.c b/esddsp.c |
| 14 | index d3c6ea9..17b5949 100644 |
| 15 | --- a/esddsp.c |
| 16 | +++ b/esddsp.c |
| 17 | @@ -290,6 +290,7 @@ open (const char *pathname, int flags, ...) |
| 18 | return open_wrapper(func, pathname, flags, mode); |
| 19 | } |
| 20 | |
| 21 | +#undef open64 |
| 22 | int |
| 23 | open64 (const char *pathname, int flags, ...) |
| 24 | { |
| 25 | @@ -374,6 +375,7 @@ fopen (const char *path, const char *mode) |
| 26 | return fopen_wrapper(func, path, mode); |
| 27 | } |
| 28 | |
| 29 | +#undef fopen64 |
| 30 | FILE * |
| 31 | fopen64 (const char *path, const char *mode) |
| 32 | { |
| 33 | -- |
| 34 | 2.13.1 |
| 35 | |