(trunk libT) try again to make hudson-t happy wrt posix_fadvise()
This commit is contained in:
parent
3b7494efd2
commit
9d7c74cc8a
|
@ -26,6 +26,13 @@
|
||||||
#define HAVE_GETRLIMIT
|
#define HAVE_GETRLIMIT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_POSIX_FADVISE
|
||||||
|
#ifdef _XOPEN_SOURCE
|
||||||
|
#undef _XOPEN_SOURCE
|
||||||
|
#endif
|
||||||
|
#define _XOPEN_SOURCE 600
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
@ -47,14 +54,8 @@
|
||||||
#include <sys/resource.h> /* getrlimit */
|
#include <sys/resource.h> /* getrlimit */
|
||||||
#endif
|
#endif
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <fcntl.h> /* O_LARGEFILE posix_fadvise */
|
||||||
|
|
||||||
#ifdef HAVE_POSIX_FADVISE
|
|
||||||
/* required for getting posix_fadvise() from fcntl.h */
|
|
||||||
#define _XOPEN_SOURCE 600
|
|
||||||
#endif
|
|
||||||
#include <fcntl.h> /* O_LARGEFILE; posix_fadvise() */
|
|
||||||
|
|
||||||
#include <event.h>
|
|
||||||
#include <evutil.h>
|
#include <evutil.h>
|
||||||
|
|
||||||
#include "transmission.h"
|
#include "transmission.h"
|
||||||
|
|
Loading…
Reference in New Issue