* udev-076 and klibc
@ 2005-11-30 20:41 Jürg Billeter
2005-11-30 23:17 ` Kay Sievers
0 siblings, 1 reply; 2+ messages in thread
From: Jürg Billeter @ 2005-11-30 20:41 UTC (permalink / raw)
To: linux-hotplug
Hi
Requiring glibc's byteswap seems to break the build of volume_id with
klibc 1.1.1 (klibc doesn't provide byteswap.h)
http://kernel.org/git/?p=linux/hotplug/udev.git;a=commit;hˆbe7e8887e9284666b7844bb0faa84fbb699fb2
Regards,
Jürg
--
Jürg Billeter <j@bitron.ch>
-------------------------------------------------------
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_idv37&alloc_id\x16865&opÌk
_______________________________________________
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: udev-076 and klibc
2005-11-30 20:41 udev-076 and klibc Jürg Billeter
@ 2005-11-30 23:17 ` Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-11-30 23:17 UTC (permalink / raw)
To: linux-hotplug
[-- Attachment #1: Type: text/plain, Size: 264 bytes --]
On Wed, Nov 30, 2005 at 09:41:47PM +0100, Jürg 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
[-- Attachment #2: byteswap.h --]
[-- Type: text/x-chdr, Size: 996 bytes --]
/*
* 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 */
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-30 23:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-30 20:41 udev-076 and klibc Jürg Billeter
2005-11-30 23:17 ` Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).