<<< Date Index >>>     <<< Thread Index >>>

Re: [PATCH] strsep warning



On 20-05-2008 14:40:40 +0200, Fabian Groffen wrote:
> If you want to look at some warnings, I put up some logs here:
> http://dev.gentoo.org/~grobian/logs/
> I'll add sparc-solaris and sparc64-solaris later, although I expect them
> not to include much new.  Note that the x64-solaris build takes the
> strsep warning more serious than on x86-solaris.

Because this is fatal on Gentoo, I had to patch it.  Maybe it's useful
for someone else too.


-- 
Fabian Groffen
Gentoo on a different level
* strsep is not available on Solaris, but mutt ships with replacement
  code.  Make the signature known though, as Gentoo on 64-bits platforms
  doesn't like warnings about "implicit declarations" of functions.

--- rfc3676.c
+++ rfc3676.c
@@ -37,6 +37,11 @@
 #include "ascii.h"
 #include "lib.h"
 
+#if !HAVE_STRSEP
+/* from included strsep.c */
+char *strsep (char **stringp, const char *delim);
+#endif
+
 #define FLOWED_MAX 77
 
 static int get_quote_level (const char *line)