diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-09-14 10:39:00 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-09-14 10:39:00 +0200 |
commit | 452ead8acb9c6d6f72ce556f4b16a15e67aa164f (patch) | |
tree | 8ac8fe054a3b22d82531fad9bf1493c08b24fa8a /stlport | |
parent | 6e27401a823acc2ec78a3abb310c430870b988e6 (diff) |
stlport-solaris-fileno.diff: fix a Solaris build issue
Diffstat (limited to 'stlport')
-rw-r--r-- | stlport/STLport-4.0.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stlport/STLport-4.0.patch b/stlport/STLport-4.0.patch index 0d262b5455cf..ea21ff93105a 100644 --- a/stlport/STLport-4.0.patch +++ b/stlport/STLport-4.0.patch @@ -3321,6 +3321,23 @@ inline char* _FILE_I_next(const FILE& __f) { return (char*) __f._ptr; } inline char* _FILE_I_end(const FILE& __f) *************** +*** 92,98 **** + typedef unsigned char* _File_ptr_type; + #endif + +! inline int _FILE_fd(const FILE& __f) { return __f._file; } + inline char* _FILE_I_begin(const FILE& __f) { return (char*) __f._base; } + inline char* _FILE_I_next(const FILE& __f) { return (char*) __f._ptr; } + inline char* _FILE_I_end(const FILE& __f) +--- 92,98 ---- + typedef unsigned char* _File_ptr_type; + #endif + +! inline int _FILE_fd(const FILE& __f) { return fileno(__CONST_CAST(FILE*,&__f)); } + inline char* _FILE_I_begin(const FILE& __f) { return (char*) __f._base; } + inline char* _FILE_I_next(const FILE& __f) { return (char*) __f._ptr; } + inline char* _FILE_I_end(const FILE& __f) +*************** *** 377,382 **** --- 380,388 ---- # endif |