X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gl%2Fvasprintf.c;h=d1b81373e80294cbec273ad9a5604936fdbf81ec;hb=96a23a4c117a9c2665ca09e5964eacf028dbcdcf;hp=824707345a62da0680fee3090441a2e4097d51b1;hpb=fe856aa957978504137c1d425815d4ed8a22be40;p=nagiosplug.git diff --git a/gl/vasprintf.c b/gl/vasprintf.c index 8247073..d1b8137 100644 --- a/gl/vasprintf.c +++ b/gl/vasprintf.c @@ -1,9 +1,9 @@ /* Formatted output to strings. - Copyright (C) 1999, 2002, 2006 Free Software Foundation, Inc. + Copyright (C) 1999, 2002, 2006-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2, or (at your option) + the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,7 +18,11 @@ #include /* Specification. */ -#include "vasprintf.h" +#ifdef IN_LIBASPRINTF +# include "vasprintf.h" +#else +# include +#endif #include #include @@ -26,11 +30,6 @@ #include "vasnprintf.h" -/* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ -#ifndef EOVERFLOW -# define EOVERFLOW E2BIG -#endif - int vasprintf (char **resultp, const char *format, va_list args) {