From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261775AbTKONXQ (ORCPT ); Sat, 15 Nov 2003 08:23:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261793AbTKONXQ (ORCPT ); Sat, 15 Nov 2003 08:23:16 -0500 Received: from wblv-224-88.telkomadsl.co.za ([165.165.224.88]:19840 "EHLO nosferatu.lan") by vger.kernel.org with ESMTP id S261775AbTKONXO (ORCPT ); Sat, 15 Nov 2003 08:23:14 -0500 Subject: [PATCH 2.6] byteorder.h breaks with __STRICT_ANSI__ defined (trivial) From: Martin Schlemmer Reply-To: azarah@nosferatu.za.org To: Linus Torvalds Cc: Linux Kernel Mailing Lists In-Reply-To: <20031111145805.45206335.davem@redhat.com> References: <1068140199.12287.246.camel@nosferatu.lan> <20031106093746.5cc8066e.davem@redhat.com> <1068489427.7910.147.camel@nosferatu.lan> <3FAFE1E2.2020000@zytor.com> <1068589739.19849.2.camel@nosferatu.lan> <20031111145805.45206335.davem@redhat.com> Content-Type: multipart/mixed; boundary="=-flDd7pFZQgvpNNxpey0F" Message-Id: <1068902672.5033.24.camel@nosferatu.lan> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Sat, 15 Nov 2003 15:24:32 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org --=-flDd7pFZQgvpNNxpey0F Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi Linus This patch fixes include/asm-i386/types.h to define __s64 and __u64 even with -ansi passed to gcc, else we get breaks for userland that may include include/asm-i386/byteorder.h through another header. It is with help/comments from David S. Miller and H. Peter Anvin. Thanks, -- Martin Schlemmer --=-flDd7pFZQgvpNNxpey0F Content-Disposition: attachment; filename=2.6.0-test9-asm-types_h-extension.patch Content-Type: text/x-patch; name=2.6.0-test9-asm-types_h-extension.patch; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit --- 1/include/asm-i386/types.h 2003-11-15 15:10:09.256721568 +0200 +++ 2/include/asm-i386/types.h 2003-11-15 15:11:07.348890216 +0200 @@ -19,10 +19,14 @@ typedef __signed__ int __s32; typedef unsigned int __u32; -#if defined(__GNUC__) && !defined(__STRICT_ANSI__) -typedef __signed__ long long __s64; -typedef unsigned long long __u64; +#ifndef __GNUC__ +# ifndef __extension__ +# define __extension__ +# endif #endif + +__extension__ typedef __signed__ long long __s64; +__extension__ typedef unsigned long long __u64; #endif /* __ASSEMBLY__ */ --=-flDd7pFZQgvpNNxpey0F--