tisdag den 29 november 2011 klockan 19:38 skrev Robert Millan detta: > Hi, > > Is just requirement of B9600 (et al) macros the reason you check for > __GLIBC__? I don't think you need to explicitly check for a specific > userland to use these macros, they're pretty standard. I'd just check > for the kernel which is what is relevant here, and add __FreeBSD__, > etc. Something like: > > #if defined(__FreeBSD_kernel__) || defined(__FreeBSD__) || > defined(__OpenBSD__)
You are very right, and your conditional is very accurate. The macros "B$num" carry a formal value in any BSD, but carry an encoded exact value only for the Linux kernel. Nothing relevant to any Libc in sight, only standards. My original message was crafted at a time when I was still elaborating my incomplete understanding. Nowadays I do appreciate that __FreeBSD_kernel__ contains an implicit __GLIBC__, since that is the only situation it makes sense as of yet! > Also, have you sent this patch to upstream? Upstream is dead as a stone. The most recent code in the tar-archive is dated 1997-09-18, 16:39. We are on our own since a long time back. Regards, Mats E Andersson -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

