=================================================================== RCS file: /cvs/mandoc/compat_getsubopt.c,v retrieving revision 1.1 retrieving revision 1.5 diff -u -p -r1.1 -r1.5 --- mandoc/compat_getsubopt.c 2011/07/24 18:15:14 1.1 +++ mandoc/compat_getsubopt.c 2014/08/17 20:53:50 1.5 @@ -1,10 +1,13 @@ -#ifdef HAVE_GETSUBOPT +#include "config.h" +#if HAVE_GETSUBOPT + int dummy; #else -/* $OpenBSD: compat_getsubopt.c,v 1.1 2011/07/24 18:15:14 kristaps Exp $ */ +/* $Id: compat_getsubopt.c,v 1.5 2014/08/17 20:53:50 schwarze Exp $ */ +/* $OpenBSD: compat_getsubopt.c,v 1.5 2014/08/17 20:53:50 schwarze Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -39,18 +42,11 @@ int dummy; #include #include -/* - * The SVID interface to getsubopt provides no way of figuring out which - * part of the suboptions list wasn't matched. This makes error messages - * tricky... The extern variable suboptarg is a pointer to the token - * which didn't match. - */ -char *suboptarg; - int getsubopt(char **optionp, char * const *tokens, char **valuep) { int cnt; + char *suboptarg; char *p; suboptarg = *valuep = NULL;