aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-multimedia/esound/esound/0002-Undefine-open64-and-fopen64.patch
blob: 10a6ba03ae0bccf8abc0ad386d6444295a7bcff2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From e218d5a0a545ebb9623d62da5cfca478f9c90fce Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Thu, 8 Jun 2017 23:11:31 -0700
Subject: [PATCH] Undefine open64 and fopen64

Since the signatures do not match with libc

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 esddsp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/esddsp.c b/esddsp.c
index d3c6ea9..17b5949 100644
--- a/esddsp.c
+++ b/esddsp.c
@@ -290,6 +290,7 @@ open (const char *pathname, int flags, ...)
   return open_wrapper(func, pathname, flags, mode);
 }
 
+#undef open64
 int
 open64 (const char *pathname, int flags, ...)
 {
@@ -374,6 +375,7 @@ fopen (const char *path, const char *mode)
   return fopen_wrapper(func, path, mode);
 }
 
+#undef fopen64
 FILE *
 fopen64 (const char *path, const char *mode)
 {