summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rich@koneko.home.annexia.org>2010-03-21 17:15:26 +0000
committerRichard Jones <rich@koneko.home.annexia.org>2010-03-22 10:41:44 +0000
commita28791d6ac818761405fe898c600bafd7137b857 (patch)
tree08f7ad7fe96d71c4f9f908077324e37556381a2f /src
parenta6802f80b3b91bfc7d6846db2989c381385e6a15 (diff)
downloadlibguestfs-a28791d6ac818761405fe898c600bafd7137b857.tar.gz
libguestfs-a28791d6ac818761405fe898c600bafd7137b857.tar.xz
libguestfs-a28791d6ac818761405fe898c600bafd7137b857.zip
Mac OS X: strerror_r on Macs is not like GNU strerror_r.
Really this should be turned into a configure-time test. Perhaps one exists already?
Diffstat (limited to 'src')
-rw-r--r--src/guestfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/guestfs.c b/src/guestfs.c
index a00e8db6..01642b48 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -395,7 +395,7 @@ guestfs_perrorf (guestfs_h *g, const char *fs, ...)
if (err < 0) return;
-#ifndef _GNU_SOURCE
+#if !defined(_GNU_SOURCE) || defined(__APPLE__)
char buf[256];
strerror_r (errnum, buf, sizeof buf);
#else