aboutsummaryrefslogtreecommitdiffstats
path: root/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sprintf.c b/sprintf.c
index aef00584aa..15678232e9 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -838,6 +838,13 @@ fmt_setup(buf, c, flags, width, prec)
#undef feof
#undef ferror
#undef fileno
+#if SIZEOF_LONG < SIZEOF_VOIDP
+# if SIZEOF_LONG_LONG == SIZEOF_VOIDP
+# define _HAVE_SANE_QUAD_
+# define _HAVE_LLP64_
+# define u_quad_t unsigned LONG_LONG
+# endif
+#endif
#include "missing/vsnprintf.c"
static int