We end up needing _GNU_SOURCE in a bunch of places-- to get direct i/o,
pipe2, and some other Linux-specific interfaces.
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
* Foundation. See file COPYING.
*
*/
-#define _GNU_SOURCE // for O_DIRECT
#include <errno.h>
#include <inttypes.h>
-#define _GNU_SOURCE
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
-
-#define _GNU_SOURCE
-
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
##
AM_COMMON_FLAGS = -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT \
--D_THREAD_SAFE -D__STDC_FORMAT_MACROS -rdynamic \
+-D_THREAD_SAFE -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -rdynamic \
${WARN_TYPE_LIMITS} ${WARN_IGNORED_QUALIFIERS} -Winit-self -Wpointer-arith \
-fno-strict-aliasing
*
*/
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
-
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
*
*/
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE /* need for pipe2 */
-#endif
-
#include "common/pipe.h"
#include <errno.h>
#ifndef CEPH_SYNC_FILESYSTEM_H
#define CEPH_SYNC_FILESYSTEM_H
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
#include <unistd.h>
inline int sync_filesystem(int fd)
* LD_PRELOAD=./gprof-helper.so your_program
*/
-#define _GNU_SOURCE
#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>