git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'bug_530_add_dm800se_support'
[enigma2.git]
/
tools
/
libopen.c
diff --git
a/tools/libopen.c
b/tools/libopen.c
index a3ae07cd8ceb8decb84b2a174491f3ccf94d41dd..f6b935ee5d15ddf2853718f5ddcee7fbc4017a1a 100644
(file)
--- a/
tools/libopen.c
+++ b/
tools/libopen.c
@@
-45,6
+45,7
@@
int open64(const char *pathname, int flags, ...)
return fd;
}
return fd;
}
+#if _FILE_OFFSET_BITS != 64
int open(const char *pathname, int flags, ...)
{
typedef int (*FUNC_PTR) (const char* pathname, int flags, ...);
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;
}
}
return fd;
}
+#endif
FILE *fopen64(const char *pathname, const char *mode)
{
FILE *fopen64(const char *pathname, const char *mode)
{
@@
-120,6
+122,7
@@
FILE *fopen64(const char *pathname, const char *mode)
return f;
}
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);
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;
}
}
return f;
}
+#endif
int socket(int domain, int type, int protocol)
{
int socket(int domain, int type, int protocol)
{