[patch] Re: HAL and hotplugging

Daniel Stone daniel at fooishbar.org
Sun Mar 16 15:26:00 PDT 2008


On Sun, Mar 16, 2008 at 03:04:47PM -0700, Wichmann, Mats D wrote:
> >> Also, I know strncasecmp isn't standard.. and I used it. Is that an
> >> issue? 
> > 
> > When we hit a platform that doesn't have it, we can steal the BSD
> > libc's implementation.  Until then, I wouldn't really worry -- I
> > guess, just add a configure check that looks for it and bombs out if
> > not. 
> 
> configure checks are good, but strncasecmp is pretty "standard" by
> most measures of the word.  It's been in POSIX for well over a decade
> and appeared in the initial Single Unix Specification which is 
> something like 1994 vintage.

Yeah, but we've had real-life platforms without strcasecmp, let alone
strncasecmp.  So if we just put a configure check in, then it bombs then
and there, instead of a mysterious compile failure.  Everyone wins!

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20080317/9fd2afcb/attachment.pgp>


More information about the xorg mailing list