Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265768AbUIWAaW (ORCPT ); Wed, 22 Sep 2004 20:30:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265800AbUIWAaW (ORCPT ); Wed, 22 Sep 2004 20:30:22 -0400 Received: from undl.funcitec.rct-sc.br ([200.135.30.197]:45188 "HELO mail.undl.org.br") by vger.kernel.org with SMTP id S265768AbUIWAaD (ORCPT ); Wed, 22 Sep 2004 20:30:03 -0400 Message-ID: <415218EE.8000207@undl.org.br> Date: Wed, 22 Sep 2004 21:29:34 -0300 From: Carlos Eduardo Medaglia Dyonisio User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: linux-kernel@vger.kernel.org CC: medaglia@undl.org.br, akpm@osdl.org, torvalds@osdl.org Subject: [PATCH][2.6.9-rc2] Fix types.h Content-Type: multipart/mixed; boundary="------------060305060501020708000706" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2376 Lines: 77 This is a multi-part message in MIME format. --------------060305060501020708000706 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Hi! This patch fixes troubles when compiling some applications that include , like xmms. When I was compiling xmms I've got: In file included from /usr/include/asm/byteorder.h:57, from /usr/include/linux/cdrom.h:14, from cdaudio.h:60, from cdaudio.c:21: /usr/include/linux/byteorder/little_endian.h:43: error: parse error before "__cpu_to_le64p" /usr/include/linux/byteorder/little_endian.h: In function `__cpu_to_le64p': /usr/include/linux/byteorder/little_endian.h:45: error: `__le64' undeclared (first use in this function) ...etc... I've put the __le(16|32|64) and __be(16|32|64) typedefs out of #ifndef __KERNEL_STRICT_NAMES and now everything is working. Xmms is compiling fine, and linux kernel too. :) Maybe I made something wrong, because this is my first patch to linux kernel... But everything is working fine for me. Regards, Cadu --------------060305060501020708000706 Content-Type: text/plain; name="patch-types.h.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="patch-types.h.diff" --- linux-2.6.9-rc2/include/linux/types.h 2004-09-13 02:33:23.000000000 -0300 +++ linux/include/linux/types.h 2004-09-18 14:16:27.000000000 -0300 @@ -140,6 +140,13 @@ #define pgoff_t unsigned long #endif +#endif /* __KERNEL_STRICT_NAMES */ + +/* + * Below are truly Linux-specific types that should never collide with + * any application/library that wants linux/types.h. + */ + #ifdef __CHECKER__ #define __bitwise __attribute__((bitwise)) #else @@ -153,13 +160,6 @@ typedef __u64 __bitwise __le64; typedef __u64 __bitwise __be64; -#endif /* __KERNEL_STRICT_NAMES */ - -/* - * Below are truly Linux-specific types that should never collide with - * any application/library that wants linux/types.h. - */ - struct ustat { __kernel_daddr_t f_tfree; __kernel_ino_t f_tinode; --------------060305060501020708000706-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/