mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +00:00
Avoid possible _XOPEN_SOURCE
redefinition warning
This commit is contained in:
parent
45b73a7866
commit
6101a69957
1 changed files with 5 additions and 1 deletions
|
@ -7,11 +7,15 @@
|
||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined (HAVE_POSIX_FADVISE) && (!defined (_XOPEN_SOURCE) || _XOPEN_SOURCE < 600)
|
||||||
|
#undef _XOPEN_SOURCE
|
||||||
|
#define _XOPEN_SOURCE 600
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <string.h> /* memcmp () */
|
#include <string.h> /* memcmp () */
|
||||||
#include <stdlib.h> /* free () */
|
#include <stdlib.h> /* free () */
|
||||||
|
|
||||||
#ifdef HAVE_POSIX_FADVISE
|
#ifdef HAVE_POSIX_FADVISE
|
||||||
#define _XOPEN_SOURCE 600
|
|
||||||
#include <fcntl.h> /* posix_fadvise () */
|
#include <fcntl.h> /* posix_fadvise () */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue