chiark / gitweb /
changelog WIP
[userv.git] / acconfig.h
index 80cec87872147bc27be9e5f582e61d18db84046a..3ead528552cc01b2ac458f435f58e4c10dd19916 100644 (file)
@@ -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
 
 
 @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
 #define LOG_AUTHPRIV LOG_AUTH
 #endif
 
+/* WCOREDUMP */
+#ifndef HAVE_WCOREDUMP
+#define WCOREDUMP(x) 0
+#endif
+
 /* GNU C attributes. */
 #ifndef FUNCATTR
 #ifdef HAVE_GNUC25_ATTRIB