diff options
Diffstat (limited to '')
-rw-r--r-- | src/system/fd_util.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/system/fd_util.c b/src/system/fd_util.c index b4a7032e6..b53ecda00 100644 --- a/src/system/fd_util.c +++ b/src/system/fd_util.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003-2011 The Music Player Daemon Project + * Copyright (C) 2003-2014 The Music Player Daemon Project * http://www.musicpd.org * * Redistribution and use in source and binary forms, with or without @@ -29,10 +29,6 @@ #include "config.h" /* must be first for large file support */ #include "fd_util.h" -#if !defined(_GNU_SOURCE) && (defined(HAVE_PIPE2) || defined(HAVE_ACCEPT4)) -#define _GNU_SOURCE -#endif - #include <assert.h> #include <unistd.h> #include <fcntl.h> @@ -73,7 +69,7 @@ fd_mask_flags(int fd, int and_mask, int xor_mask) #endif /* !WIN32 */ -static int +int fd_set_cloexec(int fd, bool enable) { #ifndef WIN32 |