From ca0b76868aa28d2ecced761ad041d942953261a9 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 14 Feb 2004 15:38:20 +0000 Subject: 2004-02-14 Andrew Cagney * configure.host (HDEFINES): When hppa*-*-hpux*, define _LARGEFILE64_SOURCE. --- bfd/configure.host | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bfd/configure.host') diff --git a/bfd/configure.host b/bfd/configure.host index 69eb17ac95..024ed62542 100644 --- a/bfd/configure.host +++ b/bfd/configure.host @@ -19,7 +19,11 @@ HOST_U_64BIT_TYPE= case "${host}" in -hppa*-*-hpux*) HDEFINES=-DHOST_HPPAHPUX ;; +hppa*-*-hpux*) # HP/UX's ftello64 et.al. declarations are only + # visible when _LARGEFILE64_SOURCE is defined. + # Without those declarations, real_ftell et.al. + # get mis-compiled. + HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;; hppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;; hppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;; hppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;; -- cgit v1.2.3