Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
7d353bbe
Commit
7d353bbe
authored
Mar 15, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure.ac: always define _GNU_SOURCE on Linux
Make sure glibc gives us all features.
parent
5696f91a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
13 deletions
+3
-13
configure.ac
configure.ac
+3
-0
ServerSocket.cxx
src/event/ServerSocket.cxx
+0
-5
fd_util.c
src/system/fd_util.c
+0
-4
fd_util.h
src/system/fd_util.h
+0
-4
No files found.
configure.ac
View file @
7d353bbe
...
@@ -90,6 +90,9 @@ linux-android*)
...
@@ -90,6 +90,9 @@ linux-android*)
linux*)
linux*)
host_is_linux=yes
host_is_linux=yes
linux_auto=auto
linux_auto=auto
dnl allow using all glibc features
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
;;
;;
mingw32* | windows*)
mingw32* | windows*)
...
...
src/event/ServerSocket.cxx
View file @
7d353bbe
...
@@ -18,11 +18,6 @@
...
@@ -18,11 +18,6 @@
*/
*/
#include "config.h"
#include "config.h"
#ifdef HAVE_STRUCT_UCRED
#define _GNU_SOURCE 1
#endif
#include "ServerSocket.hxx"
#include "ServerSocket.hxx"
#include "system/SocketUtil.hxx"
#include "system/SocketUtil.hxx"
#include "system/SocketError.hxx"
#include "system/SocketError.hxx"
...
...
src/system/fd_util.c
View file @
7d353bbe
...
@@ -29,10 +29,6 @@
...
@@ -29,10 +29,6 @@
#include "config.h"
/* must be first for large file support */
#include "config.h"
/* must be first for large file support */
#include "fd_util.h"
#include "fd_util.h"
#if !defined(_GNU_SOURCE) && (defined(HAVE_PIPE2) || defined(HAVE_ACCEPT4))
#define _GNU_SOURCE
#endif
#include <assert.h>
#include <assert.h>
#include <unistd.h>
#include <unistd.h>
#include <fcntl.h>
#include <fcntl.h>
...
...
src/system/fd_util.h
View file @
7d353bbe
...
@@ -42,10 +42,6 @@
...
@@ -42,10 +42,6 @@
#include <stddef.h>
#include <stddef.h>
#ifndef WIN32
#ifndef WIN32
#if !defined(_GNU_SOURCE) && (defined(HAVE_PIPE2) || defined(HAVE_ACCEPT4))
#define _GNU_SOURCE
#endif
#include <sys/types.h>
#include <sys/types.h>
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment