Changeset: af78dae33c74 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=af78dae33c74
Modified Files:
common/stream/stream.c
Branch: Oct2020
Log Message:
We already know we have strerror_r, we just need to rule out the GNU version.
I.e. get this to compile on the Mac.
diffs (17 lines):
diff --git a/common/stream/stream.c b/common/stream/stream.c
--- a/common/stream/stream.c
+++ b/common/stream/stream.c
@@ -407,7 +407,7 @@ my_strerror_r(int error_nr, char *buf, s
#ifndef HAVE_STRERROR_R
// Hope for the best
to_move = strerror(error_nr);
-#elif (_POSIX_C_SOURCE >= 200112L) && !_GNU_SOURCE
+#elif !defined(_GNU_SOURCE) || !_GNU_SOURCE
// standard strerror_r always writes to buf
int result_code = strerror_r(error_nr, buf, buflen);
if (result_code == 0)
@@ -946,4 +946,3 @@ mnstr_read_block(stream *restrict s, voi
return -1;
return len;
}
-
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list