File libmpd-glibc-2.20.patch of Package libmpd

--- libmpd-0.20.0.orig/src/Makefile.am
+++ libmpd-0.20.0/src/Makefile.am
@@ -1,4 +1,4 @@
-INCLUDES = 				\
+INCLUDES = -include $(top_builddir)/config.h \
 	-I.				\
 	-I$(top_srcdir)			\
 	@EXTRA_CFLAGS@ -Wall -Wmissing-declarations 
@@ -36,5 +36,5 @@ EXTRA_DIST = \
 	libmpd-version.h.in
 
 libmpd_la_LIBADD = 
-libmpd_la_LDFLAGS = @EXTRA_LDFLAGS@ -version-info @LIBMPD_LIBTOOL_VERSION@ 
+libmpd_la_LDFLAGS = @EXTRA_LDFLAGS@ -no-undefined -version-info @LIBMPD_LIBTOOL_VERSION@ 
 libmpdincludedir= $(includedir)/libmpd-1.0/libmpd/
--- libmpd-0.20.0.orig/configure.ac
+++ libmpd-0.20.0/configure.ac
@@ -23,7 +23,9 @@
 LIBMPD_LIBTOOL_VERSION=4:0:3
 AC_SUBST(LIBMPD_LIBTOOL_VERSION)
 
-AC_PROG_CC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
+AC_PROG_CC_STDC
 AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 
--- libmpd-0.20.0.orig/src/libmpd-player.c
+++ libmpd-0.20.0/src/libmpd-player.c
@@ -19,7 +19,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#define __USE_GNU
 
 #include <string.h>
 #include <stdarg.h>
--- libmpd-0.20.0.orig/src/libmpd-database.c
+++ libmpd-0.20.0/src/libmpd-database.c
@@ -19,7 +19,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#define __USE_GNU
 
 #include <string.h>
 #include <stdarg.h>
--- libmpd-0.20.0.orig/src/libmpd-playlist.c
+++ libmpd-0.20.0/src/libmpd-playlist.c
@@ -19,7 +19,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#define __USE_GNU
 
 #include <string.h>
 #include <stdarg.h>
--- libmpd-0.20.0.orig/src/libmpd-status.c
+++ libmpd-0.20.0/src/libmpd-status.c
@@ -20,7 +20,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <assert.h>
-#define __USE_GNU
 
 #include <string.h>
 #include <stdarg.h>
--- libmpd-0.20.0.orig/src/libmpd-sticker.c
+++ libmpd-0.20.0/src/libmpd-sticker.c
@@ -1,6 +1,5 @@
 #include <stdio.h>
 #include <stdlib.h>
-#define __USE_GNU
 #include <glib.h>
 #include <string.h>
 #include <stdarg.h>
--- libmpd-0.20.0.orig/src/libmpd.c
+++ libmpd-0.20.0/src/libmpd.c
@@ -19,7 +19,6 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#define __USE_GNU
 
 #include <string.h>
 #include <stdarg.h>
--- libmpd-0.20.0.orig/example/testcase/testcase.c
+++ libmpd-0.20.0/example/testcase/testcase.c
@@ -17,6 +17,7 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include "config.h"
 #include <unistd.h>
 #include <stdio.h>
 #include <stdlib.h>