Ignore:
Timestamp:
Jun 23, 2015, 9:16:33 PM (6 years ago)
Author:
mikedld
Message:

Avoid possible _XOPEN_SOURCE redefinition warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/verify.c

    r14528 r14543  
    88 */
    99
     10#if defined (HAVE_POSIX_FADVISE) && (!defined (_XOPEN_SOURCE) || _XOPEN_SOURCE < 600)
     11 #undef _XOPEN_SOURCE
     12 #define _XOPEN_SOURCE 600
     13#endif
     14
    1015#include <string.h> /* memcmp () */
    1116#include <stdlib.h> /* free () */
    1217
    1318#ifdef HAVE_POSIX_FADVISE
    14  #define _XOPEN_SOURCE 600
    1519 #include <fcntl.h> /* posix_fadvise () */
    1620#endif
Note: See TracChangeset for help on using the changeset viewer.