From 84bc5b48d3094cd6d69c562eb70e62dd7c81d796 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 Sep 2019 14:42:44 +0200 Subject: [PATCH] Improve compatibility with Solaris (#32425) --- lasso/xml/tools.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c index c10bdd4e..5850c6c8 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