This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Fix HP/UX ftello64 config; Was: [Fwd: Re: Time for a HP/PAhackathon?]


On Fri, Feb 13, 2004 at 11:14:44PM -0500, Andrew Cagney wrote:

First fallout from 64-bit off_t, it appears that HP/UX 11.xx build needs --D_LARGEFILE64_SOURCE. Any suggestions on how to "correctly" do this?


Add it to HDEFINES in bfd/configure.host

Ok, I've checked in the attached.


Andrew

2004-02-14  Andrew Cagney  <cagney@redhat.com>

	* configure.host (HDEFINES): When hppa*-*-hpux*, define
	_LARGEFILE64_SOURCE.

Index: configure.host
===================================================================
RCS file: /cvs/src/src/bfd/configure.host,v
retrieving revision 1.14
diff -u -r1.14 configure.host
--- configure.host	17 Oct 2003 02:15:53 -0000	1.14
+++ configure.host	14 Feb 2004 15:36:39 -0000
@@ -19,7 +19,11 @@
 
 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 ;;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]