From owner-cvs-all Sat Oct 9 4:32:33 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 69AB71599C; Sat, 9 Oct 1999 04:31:54 -0700 (PDT) (envelope-from bde@FreeBSD.org) Received: (from bde@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id EAA75047; Sat, 9 Oct 1999 04:31:54 -0700 (PDT) (envelope-from bde@FreeBSD.org) Message-Id: <199910091131.EAA75047@freefall.freebsd.org> From: Bruce Evans Date: Sat, 9 Oct 1999 04:31:54 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libz zconf.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk bde 1999/10/09 04:31:53 PDT Modified files: lib/libz zconf.h Log: Hard-configure z_off_t as long. Soft configuration using HAVE_UNISTD_H just breaks the prototypes for gzseek() and gztell() when an application defines HAVE_UNISTD_H before including . z_off_t was always long for compiling zlib, but was sometimes off_t for compiling applications, e.g., Ethereal 0.7.5. This "fix" preserves bug for bug binary compatibility. z_off_t should be off_t for everything, but zlib doesn't support off_t being longer than long, so using the correct type without fixing zlib's internals would at best break binary compatibility. This "fix" also make the namespace problems for HAVE_UNISTD_H no worse than hundreds of other namespace prooblems in zconf.h. I'll wait for a new release of zlib for proper fixes. Reported by: Guy Harris via jkh Revision Changes Path 1.6 +7 -5 src/lib/libz/zconf.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message