From 8111b06078902995ae07fa0322222e64491ce6f9 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 6 Nov 2009 12:13:36 -0500 Subject: [PATCH] Fix hpux build on heart --- Utilities/cmlibarchive/libarchive/archive_string.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Utilities/cmlibarchive/libarchive/archive_string.c b/Utilities/cmlibarchive/libarchive/archive_string.c index 8a93e31b1..8da0541c6 100644 --- a/Utilities/cmlibarchive/libarchive/archive_string.c +++ b/Utilities/cmlibarchive/libarchive/archive_string.c @@ -22,6 +22,9 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 500 /* mbstate_t define on some hpux */ +#endif #include "archive_platform.h" __FBSDID("$FreeBSD: src/lib/libarchive/archive_string.c,v 1.17 2008/12/06 05:56:43 kientzle Exp $");