aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/m4/patches/darwin-segfaults.patch
blob: cd88b7e72ee2515d45cfcea9ca15e1f6a0c9657d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/lib/vasnprintf.c	(ef06a7dccff68bd15f669606131c541d158d4b1a)
+++ b/lib/vasnprintf.c	(1efd2cc9274f1f5a222e759093d27c8d38825028)
@@ -4870,7 +4870,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
 #endif
                   *fbp = dp->conversion;
 #if USE_SNPRINTF
-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
+# if !defined(__APPLE__) && !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
                 fbp[1] = '%';
                 fbp[2] = 'n';
                 fbp[3] = '\0';