Improve compatibility with Solaris (#32425)

This commit is contained in:
Benjamin Dauvergne 2019-09-06 14:42:44 +02:00
parent 6c852f8c0b
commit 84bc5b48d3
1 changed files with 2 additions and 0 deletions

View File

@ -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