--- sql/sql_show.cc.orig 2009-12-07 10:43:40.252645830 +0100 +++ sql/sql_show.cc.orig 2009-12-07 10:47:23.891104956 +0100 @@ -13,6 +13,32 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* + * * Replecement of strsep, which is missing in solaris. + * * http://www.winehq.org/pipermail/wine-patches/2001-November/001322.html + * */ +#include + +static char* strsep(char** str, const char* delims) +{ + char* token; + if (*str==NULL) { + /* No more tokens */ + return NULL; + } + token=*str; + while (**str!='\0') { + if (strchr(delims,**str)!=NULL) { + **str='\0'; + (*str)++; + return token; + } + (*str)++; + } + /* There is no other token */ + *str=NULL; + return token; +} /* Function with list databases, tables or fields */