About the off_t type.

Asked by ysj.ray

When I download mysql-proxy-0.8.0 source, compile it and install, I found the there is no -D_FILE_OFFSET_BITS=64 which make the off_t be off_t64, but in the configure script, there is such rows:

dnl make sure we off_t is 64bit
dnl CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGE_FILES"

Is the off_t intended to be 32 bits by default?

Question information

Language:
English Edit question
Status:
Answered
For:
MySQL Proxy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jan Kneschke (jan-kneschke) said :
#1

it is 32bit on 32bit builds and 64bit on 64bit builds.

The define line could enable large file support even for 32bit builds

Can you help with this problem?

Provide an answer of your own, or ask ysj.ray for more information if necessary.

To post a message you must log in.