aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBen Kibbey <bjk@luxsci.net>2010-12-26 17:38:31 -0500
committerMax Kellermann <max@duempel.org>2010-12-27 04:36:23 +0100
commitff4534613a302208d7e971398a26ff986f432028 (patch)
tree8e7c346d1f52db1f1fa6d4d76a69d89595222d04 /src
parentb8fe2c74bcddaad9a9914964a7ce12015e7723bf (diff)
downloadmpd-ff4534613a302208d7e971398a26ff986f432028.tar.gz
mpd-ff4534613a302208d7e971398a26ff986f432028.tar.xz
mpd-ff4534613a302208d7e971398a26ff986f432028.zip
Build fix for Linux. Define _GNU_SOURCE in src/server_socket.c.
Diffstat (limited to 'src')
-rw-r--r--src/server_socket.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server_socket.c b/src/server_socket.c
index bb7a6f097..5eab4dc5a 100644
--- a/src/server_socket.c
+++ b/src/server_socket.c
@@ -18,6 +18,11 @@
*/
#include "config.h"
+
+#ifdef HAVE_STRUCT_UCRED
+#define _GNU_SOURCE 1
+#endif
+
#include "server_socket.h"
#include "socket_util.h"
#include "fd_util.h"