mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
always use 64bits for lseek
This commit is contained in:
parent
ced050829e
commit
1c02f4551c
1 changed files with 6 additions and 0 deletions
|
@ -52,6 +52,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
* build failed.
|
* build failed.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// for 32bit os, 2G big file limit for unistd io,
|
||||||
|
// ie. read/write/lseek to use 64bits size for huge file.
|
||||||
|
#ifndef _FILE_OFFSET_BITS
|
||||||
|
#define _FILE_OFFSET_BITS 64
|
||||||
|
#endif
|
||||||
|
|
||||||
// for int64_t print using PRId64 format.
|
// for int64_t print using PRId64 format.
|
||||||
#ifndef __STDC_FORMAT_MACROS
|
#ifndef __STDC_FORMAT_MACROS
|
||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue