diff options
-rw-r--r-- | src/core/wee-command.c | 4 | ||||
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 4 | ||||
-rw-r--r-- | src/plugins/logger/logger.c | 4 | ||||
-rw-r--r-- | src/plugins/script/script-repo.c | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 2faf34276..5c7ce293f 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -20,8 +20,8 @@ * along with WeeChat. If not, see <http://www.gnu.org/licenses/>. */ -/* this define is needed for strptime() (not on OpenBSD) */ -#if !defined(__OpenBSD__) +/* this define is needed for strptime() (not on OpenBSD/Sun) */ +#if !defined(__OpenBSD__) && !defined(__sun) #define _XOPEN_SOURCE 700 #endif diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 96953674f..85882cc0c 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -21,8 +21,8 @@ * along with WeeChat. If not, see <http://www.gnu.org/licenses/>. */ -/* this define is needed for strptime() (not on OpenBSD) */ -#if !defined(__OpenBSD__) +/* this define is needed for strptime() (not on OpenBSD/Sun) */ +#if !defined(__OpenBSD__) && !defined(__sun) #define _XOPEN_SOURCE 700 #endif diff --git a/src/plugins/logger/logger.c b/src/plugins/logger/logger.c index 9188cfdf3..7c8ab50fd 100644 --- a/src/plugins/logger/logger.c +++ b/src/plugins/logger/logger.c @@ -19,8 +19,8 @@ * along with WeeChat. If not, see <http://www.gnu.org/licenses/>. */ -/* this define is needed for strptime() (not on OpenBSD) */ -#if !defined(__OpenBSD__) +/* this define is needed for strptime() (not on OpenBSD/Sun) */ +#if !defined(__OpenBSD__) && !defined(__sun) #define _XOPEN_SOURCE 700 #endif diff --git a/src/plugins/script/script-repo.c b/src/plugins/script/script-repo.c index 6016f04c8..b9f868653 100644 --- a/src/plugins/script/script-repo.c +++ b/src/plugins/script/script-repo.c @@ -23,7 +23,7 @@ * this define is needed for strptime() * but is not used for OpenBSD, it causes bug with gcrypt (see bug #37373) */ -#if !defined(__OpenBSD__) +#if !defined(__OpenBSD__) && !defined(__sun) #define _XOPEN_SOURCE 700 #endif |