2004-02-14 Andrew Cagney <cagney@redhat.com>
[external/binutils.git] / bfd / configure.host
index 69eb17a..024ed62 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 ;;