summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-09-06 12:42:44 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2019-09-06 12:42:44 (GMT)
commit84bc5b48d3094cd6d69c562eb70e62dd7c81d796 (patch)
tree31e7f633492bbe801aae8dac0686f2ff786a692c
parent6c852f8c0bdca7cc85dd1edbdb939887bd35ffe3 (diff)
downloadlasso-84bc5b48d3094cd6d69c562eb70e62dd7c81d796.zip
lasso-84bc5b48d3094cd6d69c562eb70e62dd7c81d796.tar.gz
lasso-84bc5b48d3094cd6d69c562eb70e62dd7c81d796.tar.bz2
Improve compatibility with Solaris (#32425)
-rw-r--r--lasso/xml/tools.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
index c10bdd4..5850c6c 100644
--- a/lasso/xml/tools.c
+++ b/lasso/xml/tools.c
@@ -28,7 +28,9 @@
*/
#define _DEFAULT_SOURCE
/* permit importation of strptime for glibc2 */
+#if !defined(__sun)
#define _XOPEN_SOURCE
+#endif
/* permit importation of timegm for glibc2, wait for people to complain it does not work on their
* system. */
#define _BSD_SOURCE