"R. Lindsay Todd" <[EMAIL PROTECTED]> writes:

| It looks like AIX has a C++ stdlib.h file that defines bzero, as
|  well as other
| stdlib.h functions.  This #undefs bzero before specifying the prototype.
| Would it harm anything to have configure look for stdlib.h, and #include
| that in spellchecker.C if it exists?  I wouldn't expect it to.


| 
| Looking at the OpenGroup spec's, bzero is supposed to be defined in
| strings.h (yes, strings, not string).  But then again, FD_ZERO should
| only require sys/time.h.  Which suggests the AIX behaviour is not
| standards-conforming.  But of course, the spec's are for ANSI C, not
| C++.  So who knows what the behaviour should be...

The problem is that select and FD_ZERO (etc.) are not ANSI C they are
BSD or POSIX (or other).

the same goes for bzero and memset.

| Maybe the right solution is to see which of these header files are needed
| to make FD_ZERO work: sys/time.h, stdlib.h, strings.h.  (After all, it is
| FD_ZERO we want, not bzero.)  Since the set of header files you are
| already using is working for most systems, this ought to do the trick.
| This could be done in configure.

Should be cone in configure.

        Lgb

Reply via email to