gmpc: fix build

This commit is contained in:
Domen Kožar 2014-12-10 09:55:22 +01:00
parent 4faed098e8
commit 7080a9cae8
2 changed files with 16 additions and 0 deletions

View File

@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
url = http://download.sarine.nl/Programs/gmpc/11.8/libmpd-11.8.17.tar.gz;
sha256 = "10vspwsgr8pwf3qp2bviw6b2l8prgdiswgv7qiqiyr0h1mmk487y";
};
patches = [ ./libmpd-11.8.17-remove-strndup.patch ];
buildInputs = [ pkgconfig glib ];
};

View File

@ -0,0 +1,15 @@
diff --git a/src/libmpd-internal.h b/src/libmpd-internal.h
index c84c3a4..51be441 100644
--- a/src/libmpd-internal.h
+++ b/src/libmpd-internal.h
@@ -206,10 +206,6 @@ int mpd_unlock_conn(MpdObj *mi);
MpdData * mpd_misc_sort_tag_list(MpdData *data);
-#ifndef HAVE_STRNDUP
-char * strndup (const char *s, size_t n);
-#endif
-
int mpd_server_get_allowed_commands(MpdObj *mi);
typedef enum _MpdSearchType {
MPD_SEARCH_TYPE_NONE,