]> andersk Git - openssh.git/blobdiff - bsd-snprintf.c
- Check for libwrap if --with-tcp-wrappers option specified. Suggestion
[openssh.git] / bsd-snprintf.c
index e85d9296a73fcb37a5e4f6862d77dc72623cd163..69534ecf1492abb861c2d918ec9fd56e7e924462 100644 (file)
@@ -44,7 +44,7 @@
 #include <setjmp.h>
 
 #ifndef roundup
-#define roundup (x, y) ((((x)+((y)-1))/(y))*(y))
+#define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
 #endif
 
 static int pgsize;
@@ -54,6 +54,25 @@ static sigjmp_buf bail;
 
 #define EXTRABYTES     2       /* XXX: why 2? you don't want to know */
 
+#ifndef HAVE_GETPAGESIZE
+int
+getpagesize()
+{
+#ifdef EXEC_PAGESIZE
+  return EXEC_PAGESIZE;
+#else /* !EXEC_PAGESIZE */
+# ifdef NBPG
+#  ifndef CLSIZE
+#   define CLSIZE      1
+#  endif /* No CLSIZE */
+  return NBPG * CLSIZE;
+# else /* !NBPG */
+  return NBPC;
+# endif /* NBPG */
+#endif /* EXEC_PAGESIZE */
+}
+#endif /* HAVE_GETPAGESIZE */
+
 static char *
 msetup(str, n)
        char *str;
@@ -107,7 +126,7 @@ vsnprintf(str, n, fmt, ap)
        char *str;
        size_t n;
        char *fmt;
-       char *ap;
+       va_list *ap;
 {
        struct sigaction osa, nsa;
        char *p;
This page took 0.031055 seconds and 4 git commands to generate.