gmpc: fix build
This commit is contained in:
parent
4faed098e8
commit
7080a9cae8
@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
|
|||||||
url = http://download.sarine.nl/Programs/gmpc/11.8/libmpd-11.8.17.tar.gz;
|
url = http://download.sarine.nl/Programs/gmpc/11.8/libmpd-11.8.17.tar.gz;
|
||||||
sha256 = "10vspwsgr8pwf3qp2bviw6b2l8prgdiswgv7qiqiyr0h1mmk487y";
|
sha256 = "10vspwsgr8pwf3qp2bviw6b2l8prgdiswgv7qiqiyr0h1mmk487y";
|
||||||
};
|
};
|
||||||
|
patches = [ ./libmpd-11.8.17-remove-strndup.patch ];
|
||||||
buildInputs = [ pkgconfig glib ];
|
buildInputs = [ pkgconfig glib ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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,
|
Loading…
Reference in New Issue
Block a user