aboutsummaryrefslogtreecommitdiff
path: root/tools/libopen.c
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@saftware.de>2009-08-15 16:17:19 +0200
committerAndreas Oberritter <obi@saftware.de>2009-08-15 16:17:19 +0200
commit68b2a05336cba25b93ebc91a7b7ee9b5394dbacc (patch)
treedb5ea682bf839f0ab128cd1043652742224c7876 /tools/libopen.c
parentce50a187c68d7dcbbed94e10de5950df29d7b525 (diff)
downloadenigma2-68b2a05336cba25b93ebc91a7b7ee9b5394dbacc.tar.gz
enigma2-68b2a05336cba25b93ebc91a7b7ee9b5394dbacc.zip
Don't define open or fopen if _FILE_OFFSET_BITS == 64
If _FILE_OFFSET_BITS is 64, then (f)open will be converted automatically to (f)open64, resulting in duplicate symbols
Diffstat (limited to 'tools/libopen.c')
-rw-r--r--tools/libopen.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/libopen.c b/tools/libopen.c
index a3ae07cd..f6b935ee 100644
--- a/tools/libopen.c
+++ b/tools/libopen.c
@@ -45,6 +45,7 @@ int open64(const char *pathname, int flags, ...)
return fd;
}
+#if _FILE_OFFSET_BITS != 64
int open(const char *pathname, int flags, ...)
{
typedef int (*FUNC_PTR) (const char* pathname, int flags, ...);
@@ -81,6 +82,7 @@ int open(const char *pathname, int flags, ...)
}
return fd;
}
+#endif
FILE *fopen64(const char *pathname, const char *mode)
{
@@ -120,6 +122,7 @@ FILE *fopen64(const char *pathname, const char *mode)
return f;
}
+#if _FILE_OFFSET_BITS != 64
FILE *fopen(const char *pathname, const char *mode)
{
typedef FILE *(*FUNC_PTR) (const char* pathname, const char *mode);
@@ -157,6 +160,7 @@ FILE *fopen(const char *pathname, const char *mode)
}
return f;
}
+#endif
int socket(int domain, int type, int protocol)
{