about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/HISTORY3
-rw-r--r--lib/util/vasprintf.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index dc793c97..ab2af09e 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -56,6 +56,9 @@ not yet  BJH  Release 10.51.00
 
               pampaintspill: fix incorrect output.
 
+              build: fix incorrect determination of when vasprintf() exists
+              in libc.
+
               configure: don't default to /usr/X11R6/lib/libX11.so just because
               /usr/X11R6 exists.  /usr/X11R6/lib must exist.
 
diff --git a/lib/util/vasprintf.c b/lib/util/vasprintf.c
index 9d8fe590..ed8fc808 100644
--- a/lib/util/vasprintf.c
+++ b/lib/util/vasprintf.c
@@ -7,7 +7,7 @@
 
 #include "nstring.h"
 
-#if defined(__GNUC__) && !defined(__MINGW32__)
+#if (defined(__GLIBC__) || defined(__GNU_LIBRARY__))
   #define HAVE_VASPRINTF 1
 #else
   #define HAVE_VASPRINTF 0