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