=================================================================== RCS file: /cvs/mandoc/compat_reallocarray.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- mandoc/compat_reallocarray.c 2014/12/11 09:05:01 1.4 +++ mandoc/compat_reallocarray.c 2020/06/15 01:37:15 1.5 @@ -1,13 +1,5 @@ -#include "config.h" - -#if HAVE_REALLOCARRAY - -int dummy; - -#else - -/* $Id: compat_reallocarray.c,v 1.4 2014/12/11 09:05:01 schwarze Exp $ */ -/* $OpenBSD: compat_reallocarray.c,v 1.4 2014/12/11 09:05:01 schwarze Exp $ */ +/* $Id: compat_reallocarray.c,v 1.5 2020/06/15 01:37:15 schwarze Exp $ */ +/* $OpenBSD: compat_reallocarray.c,v 1.5 2020/06/15 01:37:15 schwarze Exp $ */ /* * Copyright (c) 2008 Otto Moerbeek * @@ -23,6 +15,7 @@ int dummy; * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "config.h" #include #include @@ -45,5 +38,3 @@ reallocarray(void *optr, size_t nmemb, size_t size) } return realloc(optr, size * nmemb); } - -#endif /*!HAVE_REALLOCARRAY*/