[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fix for AC_HEADER_MAJOR for glibc + non-gcc
From: |
Paul Eggert |
Subject: |
Re: Fix for AC_HEADER_MAJOR for glibc + non-gcc |
Date: |
Mon, 15 Oct 2001 23:14:28 -0700 (PDT) |
> From: Akim Demaille <address@hidden>
> Date: 10 Oct 2001 15:14:03 +0200
>
> Thanks for the patch. This is the kind of patch which I would really
> love to see approved by Jim or Paul.
I'm a bit dubious about that patch. Older hosts lack dev_t, so if we
require dev_t in the test program, those older hosts will wrongly fail
the test. Perhaps if you checked for dev_t first....
... but that raises my next objection, namely that implementations
where dev_t is an array type do not conform to POSIX and are a porting
hassle that these macros do not really address.
I used to worry about hosts with brain damaged system types like that.
However, I stopped worrying about them a few years ago, and have never
regretted it. It's such a hassle dealing with systems where you can't
compare dev_t values with == (or even with memcmp, for that matter).