git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6802f8
)
Mac OS X: strerror_r on Macs is not like GNU strerror_r.
author
Richard Jones
<rich@koneko.home.annexia.org>
Sun, 21 Mar 2010 17:15:26 +0000
(17:15 +0000)
committer
Richard Jones
<rich@koneko.home.annexia.org>
Mon, 22 Mar 2010 10:41:44 +0000
(10:41 +0000)
Really this should be turned into a configure-time test.
Perhaps one exists already?
src/guestfs.c
patch
|
blob
|
history
diff --git
a/src/guestfs.c
b/src/guestfs.c
index
a00e8db
..
01642b4
100644
(file)
--- a/
src/guestfs.c
+++ b/
src/guestfs.c
@@
-395,7
+395,7
@@
guestfs_perrorf (guestfs_h *g, const char *fs, ...)
if (err < 0) return;
-#if
ndef _GNU_SOURCE
+#if
!defined(_GNU_SOURCE) || defined(__APPLE__)
char buf[256];
strerror_r (errnum, buf, sizeof buf);
#else