http://bugs.winehq.org/show_bug.cgi?id=17868
--- Comment #2 from Austin English austinenglish@gmail.com 2009-03-29 10:53:48 --- (In reply to comment #1)
Looks like Solaris has broken 'struct option' definition, particularly 'char *name' without 'const'.
FWIW, from PostgreSQL's configure: # Similarly, use system's getopt_long() only if system provides struct option. # Solaris' getopt() doesn't do what we want for long options, so always use # our versions on that platform. if test "$PORTNAME" = "solaris"; then AC_LIBOBJ(getopt) AC_LIBOBJ(getopt_long) elif test x"$ac_cv_type_struct_option" = xyes ; then AC_REPLACE_FUNCS([getopt_long]) else AC_LIBOBJ(getopt_long) fi