Version bumped to 1.4.1.
[mdsms.git] / acconfig.h
index 1e9459d..a2cd01e 100644 (file)
 /* vsnprintf(3) unsafe emulation */
 #undef HAVE_VSNPRINTF
 
-/* printf family accepts %m */
-#undef PRINTF_WORKS_PM
-
 /* found lockfile directory */
 #undef DEF_LOCKFILE
 
 /* how to declare __atribute__ ((__unused__)) */
 #undef ATTR_UNUSED
 
+/* whether they have __atttribute__ ((format(printf,...))) */
+#undef HAVE_PRINTFORMAT
+#ifdef HAVE_PRINTFORMAT
+#define ATTR_PRINTFORMAT(a,b) __attribute__ ((format(printf,(a),(b))))
+#else
+#define ATTR_PRINTFORMAT(a,b)
+#endif
+
 @BOTTOM@
 
 #ifndef DONT_NEED_DECLARATIONS
@@ -109,6 +114,13 @@ void usleep(unsigned long usec);
 int strcasecmp(const char *s1, const char *s2);
 #endif
 
+/* Declaration for siginterrupt(3)? */
+#undef NEED_DECLARATION_SIGINTERRUPT
+#ifdef NEED_DECLARATION_SIGINTERRUPT
+#include <signal.h>
+int siginterrupt(int sig, int flag);
+#endif
+
 #endif /* !DONT_NEED_DECLARATIONS */
 
 /* snprintf(3) unsafe emulation */
@@ -116,8 +128,8 @@ int strcasecmp(const char *s1, const char *s2);
 #define VARPRINTF(v,f,d)      snprintf((v),sizeof((v)),f,(d)      )
 #define VARPRINTF2(v,f,d1,d2) snprintf((v),sizeof((v)),f,(d1),(d2))
 #else
-#define VARPRINTF(v,f,d)      sprintf((v),sizeof((v)),f,(d)      )
-#define VARPRINTF2(v,f,d1,d2) sprintf((v),sizeof((v)),f,(d1),(d2))
+#define VARPRINTF(v,f,d)      sprintf((v),f,(d)      )
+#define VARPRINTF2(v,f,d1,d2) sprintf((v),f,(d1),(d2))
 #endif
 
 /* vsnprintf(3) unsafe emulation */
@@ -125,7 +137,7 @@ int strcasecmp(const char *s1, const char *s2);
 #define VARVPRINTF(v,f,d)      vsnprintf((v),sizeof((v)),f,(d)      )
 #define VARVPRINTF2(v,f,d1,d2) vsnprintf((v),sizeof((v)),f,(d1),(d2))
 #else
-#define VARVPRINTF(v,f,d)      vsprintf((v),sizeof((v)),f,(d)      )
-#define VARVPRINTF2(v,f,d1,d2) vsprintf((v),sizeof((v)),f,(d1),(d2))
+#define VARVPRINTF(v,f,d)      vsprintf((v),f,(d)      )
+#define VARVPRINTF2(v,f,d1,d2) vsprintf((v),f,(d1),(d2))
 #endif