X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=config.h.in;h=994d2588861e25337f9a21c57890898a992c875c;hp=0697f090502ff06b6026d192028db8b55fd14ee6;hb=5daf4a912cebce216db1b44154b3b20fa9a77582;hpb=f0dee23150ee29db81bcf49c5112893bc85f2c92 diff --git a/config.h.in b/config.h.in index 0697f09..994d258 100644 --- a/config.h.in +++ b/config.h.in @@ -27,6 +27,9 @@ /* Define if you have the strsignal function. */ #undef HAVE_STRSIGNAL +/* Define if you have the vsnprintf function. */ +#undef HAVE_VSNPRINTF + /* Define if you have the socket library (-lsocket). */ #undef HAVE_LIBSOCKET @@ -35,6 +38,11 @@ #define STRSIGNAL(x) "[platform has no strsignal!]" #endif +/* VSNPRINTF */ +#ifndef HAVE_VSNPRINTFx +# error "You must have vsnprintf! Without vsnprintf it is very hard to write secure programs. If you don't have it then your system libc is probably full of hideous buffer overrun security bugs. But, if you don't want to fix your system a portable snprintf can be found at http://www.ijs.si/software/snprintf/" +#endif + /* EPROTO */ #ifndef HAVE_EPROTO #define EPROTO 0