From 07f031fd1d76a4941d12bb5cc6d354fa4dd2c7a4 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Thu, 3 Feb 2005 20:38:52 -0500 Subject: [PATCH] Define _XOPEN_SOURCE to be 500 to fix compilation problems on Solaris. --- debugfs/ChangeLog | 5 +++++ debugfs/set_fields.c | 6 +----- misc/ChangeLog | 5 +++++ misc/tune2fs.c | 6 +----- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/debugfs/ChangeLog b/debugfs/ChangeLog index d24f62c..0908d80 100644 --- a/debugfs/ChangeLog +++ b/debugfs/ChangeLog @@ -1,3 +1,8 @@ +2005-02-03 Theodore Ts'o + + * set_fields.c: Define _XOPEN_SOURCE to be 500 to fix compilation + problems on Solaris. + 2005-01-20 Theodore Ts'o * set_fields.c: Add support for the jnl_blocks[] for set_super_value diff --git a/debugfs/set_fields.c b/debugfs/set_fields.c index 5c0cf50..35ddba9 100644 --- a/debugfs/set_fields.c +++ b/debugfs/set_fields.c @@ -9,11 +9,7 @@ * %End-Header% */ -#ifndef __sun__ - /* Solaris for some strange reason drops struct - timeval if _XOPEN_SOURCE defined */ -#define _XOPEN_SOURCE /* glibc2 needs this for strptime */ -#endif +#define _XOPEN_SOURCE 500 /* for inclusion of strptime() */ #include #include diff --git a/misc/ChangeLog b/misc/ChangeLog index 8fcbf5d..46ba04d 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +2005-02-03 Theodore Ts'o + + * tune2fs.c: Define _XOPEN_SOURCE to be 500 to fix compilation + problems on Solaris. + 2005-01-28 Theodore Ts'o * mke2fs.c (main): Only call create_resize_inode if the resize diff --git a/misc/tune2fs.c b/misc/tune2fs.c index 73ca95b..e0d7dd6 100644 --- a/misc/tune2fs.c +++ b/misc/tune2fs.c @@ -25,11 +25,7 @@ * 94/03/06 - Added the checks interval from Uwe Ohse (uwe@tirka.gun.de) */ -#ifndef __sun__ - /* Solaris for a strange reason drops struct - timeval if _XOPEN_SOURCE defined */ -#define _XOPEN_SOURCE /* for inclusion of strptime() */ -#endif +#define _XOPEN_SOURCE 500 /* for inclusion of strptime() */ #define _BSD_SOURCE /* for inclusion of strcasecmp() */ #include #include -- 1.8.3.1