From owner-cvs-sys Sun Apr 20 04:44:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA17003 for cvs-sys-outgoing; Sun, 20 Apr 1997 04:44:36 -0700 (PDT) Received: (from bde@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id EAA16995; Sun, 20 Apr 1997 04:44:34 -0700 (PDT) Date: Sun, 20 Apr 1997 04:44:34 -0700 (PDT) From: Bruce Evans Message-Id: <199704201144.EAA16995@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/i386/include endian.h Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk bde 97/04/20 04:44:33 Modified: sys/i386/include endian.h Log: Fixed linting of and compilation of the gcc byte-swapping macros properly. Simply don't use the gcc macros if we're not gcc, and declare prototypes for the byte-swapping functions in case the macro versions are not used. The previous fix was wrong and broke libpcap, which abuses -Dlint. Don't pollute the namespace if _POSIX_SOURCE is defined. This is broken - it makes almost everything in inaccessible if _POSIX_SOURCE is defined, yet is not a POSIX header. Other systems don't do it any better. Removed always-false `BYTE_ORDER == BIG_ENDIAN' ifdef. Obtained from: partly from Lite(2?) and NetBSD Revision Changes Path 1.15 +12 -15 src/sys/i386/include/endian.h