2004-02-14 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 14 Feb 2004 15:38:20 +0000 (15:38 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 14 Feb 2004 15:38:20 +0000 (15:38 +0000)
* configure.host (HDEFINES): When hppa*-*-hpux*, define
_LARGEFILE64_SOURCE.

bfd/ChangeLog
bfd/configure.host

index 4192e849b7ed692eacbe7bc7f5a02d97095de511..0c4caf5726fcf1215553d165151e678e78c4f863 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-14  Andrew Cagney  <cagney@redhat.com>
+
+       * configure.host (HDEFINES): When hppa*-*-hpux*, define
+       _LARGEFILE64_SOURCE.
+
 2004-02-13  Andrew Cagney  <cagney@redhat.com>
 
        * elf.c (vma_page_aligned_bias): New function.
index 69eb17ac95865e7c4c9dd00589ecd8dfae60b99a..024ed625420119cf37e054733c4c8067765e2c32 100644 (file)
@@ -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 ;;