From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 30 Nov 2005 23:17:01 +0000 Subject: Re: udev-076 and klibc Message-Id: <20051130231701.GA5871@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" List-Id: References: <1133383307.3907.4.camel@juerg-pd.bitron.ch> In-Reply-To: <1133383307.3907.4.camel@juerg-pd.bitron.ch> To: linux-hotplug@vger.kernel.org --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 30, 2005 at 09:41:47PM +0100, J=C3=BCrg Billeter wrote: > Requiring glibc's byteswap seems to break the build of volume_id with > klibc 1.1.1 (klibc doesn't provide byteswap.h) Yes, I know. You need to add the attached file to the klibc tree. Kay --OgqxwSJOaUobr8KG Content-Type: text/x-chdr; charset=us-ascii Content-Disposition: inline; filename="byteswap.h" /* * elf.h */ #ifndef _BYTESWAP_H #define _BYTESWAP_H #define bswap_16(x) \ ((__u16)( \ (((__u16)(x) & (__u16)0x00ffU) << 8) | \ (((__u16)(x) & (__u16)0xff00U) >> 8) )) #define bswap_32(x) \ ((__u32)( \ (((__u32)(x) & (__u32)0x000000ffUL) << 24) | \ (((__u32)(x) & (__u32)0x0000ff00UL) << 8) | \ (((__u32)(x) & (__u32)0x00ff0000UL) >> 8) | \ (((__u32)(x) & (__u32)0xff000000UL) >> 24) )) #define bswap_64(x) \ ((__u64)( \ (__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \ (__u64)(((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \ (__u64)(((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \ (__u64)(((__u64)(x) & (__u64)0x00000000ff000000ULL) << 8) | \ (__u64)(((__u64)(x) & (__u64)0x000000ff00000000ULL) >> 8) | \ (__u64)(((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \ (__u64)(((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \ (__u64)(((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56) )) #endif /* _BYTESWAP_H */ --OgqxwSJOaUobr8KG-- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel