aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.host
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-02-14 15:38:20 +0000
committerAndrew Cagney <cagney@redhat.com>2004-02-14 15:38:20 +0000
commitca0b76868aa28d2ecced761ad041d942953261a9 (patch)
tree1976e84ede3a970c007b82078ba5d7fd861102b9 /bfd/configure.host
parent9bf78c997eed8b851e6d6d8b72fc0b3e4cebb1b8 (diff)
downloadgdb-ca0b76868aa28d2ecced761ad041d942953261a9.zip
gdb-ca0b76868aa28d2ecced761ad041d942953261a9.tar.gz
gdb-ca0b76868aa28d2ecced761ad041d942953261a9.tar.bz2
2004-02-14 Andrew Cagney <cagney@redhat.com>
* configure.host (HDEFINES): When hppa*-*-hpux*, define _LARGEFILE64_SOURCE.
Diffstat (limited to 'bfd/configure.host')
-rw-r--r--bfd/configure.host6
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/configure.host b/bfd/configure.host
index 69eb17a..024ed62 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 ;;