[gst-devel] large file support

David I. Lehn dlehn at vt.edu
Thu Sep 13 16:36:02 CEST 2001


* vishnu at pobox.com <vishnu at pobox.com> [20010913 19:31]:
> The following patch to configure.base solves the problems with
> large files and filesrc.  i'm surprised that no further changes
> were required to filesrc, but it suddenly works fine:
...
> +AC_MSG_CHECKING(for large file support)
> +AC_TRY_RUN([
> +#define _LARGEFILE_SOURCE
> +#define _FILE_OFFSET_BITS 64
> +#include <sys/types.h>
> +int main () { return !(sizeof(off_t) == 8); }
> +],
> +[
> +AC_MSG_RESULT(yes)
> +CORE_CFLAGS="$CORE_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
> +GST_DEFINE_CFLAGS="$GST_DEFINE_CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"

Anyone taking bets on how (non)portable this is?

-dave
-- 
David I. Lehn <dlehn at vt.edu>  | http://www.lehn.org/~dlehn/
Computer Engineering Graduate @ Virginia Tech in sunny Blacksburg, VA




More information about the gstreamer-devel mailing list