X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=acconfig.h;h=3ead528552cc01b2ac458f435f58e4c10dd19916;hp=80cec87872147bc27be9e5f582e61d18db84046a;hb=24c0c66c5538c8c7b420ed90d0a6de20c1153abd;hpb=78032a78185e751a0bf0b77863f23d005359205f diff --git a/acconfig.h b/acconfig.h index 80cec87..3ead528 100644 --- a/acconfig.h +++ b/acconfig.h @@ -25,6 +25,9 @@ /* Define if LOG_AUTHPRIV exists. */ #undef HAVE_LOG_AUTHPRIV +/* Define if WCOREDUMP exists. */ +#undef HAVE_WCOREDUMP + /* Define if function attributes a la GCC 2.5 and higher are available. */ #undef HAVE_GNUC25_ATTRIB @@ -39,6 +42,16 @@ @BOTTOM@ +/* STRSIGNAL */ +#ifndef HAVE_STRSIGNAL +#define STRSIGNAL(x) "[platform has no strsignal!]" +#endif + +/* VSNPRINTF */ +#ifndef HAVE_VSNPRINTF +# 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 @@ -49,6 +62,11 @@ #define LOG_AUTHPRIV LOG_AUTH #endif +/* WCOREDUMP */ +#ifndef HAVE_WCOREDUMP +#define WCOREDUMP(x) 0 +#endif + /* GNU C attributes. */ #ifndef FUNCATTR #ifdef HAVE_GNUC25_ATTRIB