From e9402d7ed06fe24a79f4976ca4f0ba140539756e Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 21 Apr 2014 18:17:05 +0000 Subject: Fix build against newer readline. --- audio/id3ed/distinfo | 3 ++- audio/id3ed/patches/patch-id3ed.cc | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 audio/id3ed/patches/patch-id3ed.cc (limited to 'audio/id3ed') diff --git a/audio/id3ed/distinfo b/audio/id3ed/distinfo index f237e73b4d5..d2c4608dbd3 100644 --- a/audio/id3ed/distinfo +++ b/audio/id3ed/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.7 2005/02/23 20:39:47 agc Exp $ +$NetBSD: distinfo,v 1.8 2014/04/21 18:17:05 joerg Exp $ SHA1 (id3ed-1.10.4.tar.gz) = b699e645fcea2fa42658886621eb10531d24008a RMD160 (id3ed-1.10.4.tar.gz) = c01388bcde85c271ea1a9f1f07a2769913c40e18 Size (id3ed-1.10.4.tar.gz) = 31610 bytes SHA1 (patch-aa) = b20838a13e1cae3217917d4f5f8023c4329aa979 SHA1 (patch-ab) = cafd397b8e994eea35e7d87d504c84c79c158fc2 +SHA1 (patch-id3ed.cc) = 3ac373ef9a81ce5efd217fd5616a49f238917851 diff --git a/audio/id3ed/patches/patch-id3ed.cc b/audio/id3ed/patches/patch-id3ed.cc new file mode 100644 index 00000000000..0b7a2ce69d8 --- /dev/null +++ b/audio/id3ed/patches/patch-id3ed.cc @@ -0,0 +1,22 @@ +$NetBSD: patch-id3ed.cc,v 1.1 2014/04/21 18:17:05 joerg Exp $ + +--- id3ed.cc.orig 2014-04-20 18:35:33.000000000 +0000 ++++ id3ed.cc +@@ -354,7 +354,7 @@ void genreedit(unsigned char &d){ + #ifdef HAVE_LIBREADLINE + char *str=NULL; + my_rl_default=def; +- rl_startup_hook=(Function*)set_rl_default; ++ rl_startup_hook=set_rl_default; + #ifdef HAVE_SET_H + (const char *(*)(const char *,int))rl_completion_entry_function=genre_generator; + #endif +@@ -404,7 +404,7 @@ void stredit(const char * name, int maxl + char *str; + sprintf(prompt,"%s[max:%i]: ",name,maxlen); + my_rl_default=def; +- rl_startup_hook=(Function*)set_rl_default; ++ rl_startup_hook=set_rl_default; + if((str=readline(prompt))){ + strncpy(buf,str,maxlen); + if (*str){ -- cgit v1.2.3