largefile patch added

git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@82 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Oxy 2006-08-17 05:19:03 +00:00
parent 5d3ef166c1
commit 8c56f16607

View File

@ -36,6 +36,14 @@
//@{ //@{
#if defined MYLIB_LARGEFILE_SENSITIVE && _FILE_OFFSET_BITS+0 != 64
#if defined __GNUC__
#warning libupnp requires largefile mode - use AC_SYS_LARGEFILE
#else
# error libupnp requires largefile mode - use AC_SYS_LARGEFILE
#endif
#endif
#include <stdio.h> #include <stdio.h>
#ifdef __FreeBSD__ #ifdef __FreeBSD__
#include <time.h> #include <time.h>
@ -875,7 +883,7 @@ struct File_Info
/** The length of the file. A length less than 0 indicates the size /** The length of the file. A length less than 0 indicates the size
* is unknown, and data will be sent until 0 bytes are returned from * is unknown, and data will be sent until 0 bytes are returned from
* a read call. */ * a read call. */
int file_length; off_t file_length;
/** The time at which the contents of the file was modified; /** The time at which the contents of the file was modified;
* The time system is always local (not GMT). */ * The time system is always local (not GMT). */
@ -969,7 +977,7 @@ struct UpnpVirtualDirCallbacks
int (*seek) ( int (*seek) (
IN UpnpWebFileHandle fileHnd, /** The handle of the file to move the IN UpnpWebFileHandle fileHnd, /** The handle of the file to move the
file pointer. */ file pointer. */
IN long offset, /** The number of bytes to move in the IN off_t offset, /** The number of bytes to move in the
file. Positive values move foward and file. Positive values move foward and
negative values move backward. Note negative values move backward. Note
that this must be positive if the that this must be positive if the
@ -2707,4 +2715,3 @@ EXPORT_SPEC void UpnpFree(
//@} The API //@} The API
#endif #endif