X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/d5899efe4a68c00b14f7b4e40042b60c86db4898..129204d2b6e8eb95a79408a2653069d26ec852d7:/compat_getsubopt.c?ds=sidebyside diff --git a/compat_getsubopt.c b/compat_getsubopt.c index 1a7ec6e8..880f2f78 100644 --- a/compat_getsubopt.c +++ b/compat_getsubopt.c @@ -1,9 +1,12 @@ -#ifdef HAVE_GETSUBOPT +#include "config.h" + +#if HAVE_GETSUBOPT int dummy; #else +/* $Id: compat_getsubopt.c,v 1.5 2014/08/17 20:53:50 schwarze Exp $ */ /* $OpenBSD: getsubopt.c,v 1.4 2005/08/08 08:05:36 espie Exp $ */ /*- @@ -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;