aboutsummaryrefslogtreecommitdiffstats
path: root/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/compat.c b/compat.c
new file mode 100644
index 0000000..c123d07
--- /dev/null
+++ b/compat.c
@@ -0,0 +1,29 @@
+#include "config.h"
+#include "compat.h"
+
+#include <stdarg.h>
+#include <stdio.h>
+
+RCSID("$Id: compat.c,v 1.1.1.1 1999/02/02 23:29:39 shmit Exp $");
+
+#ifdef NEED_SETPROCTITLE
+void
+setproctitle(const char *fmt, ...)
+{
+}
+#endif
+
+#ifdef NEED_SNPRINTF
+int
+snprintf(char *str, size_t size, const char *fmt, ...)
+{
+ va_list ap;
+ int rc;
+
+ va_start(ap, fmt);
+ rc = vsprintf(str, fmt, ap);
+ va_end(ap);
+
+ return rc;
+}
+#endif