[OpenAFS-devel] strings.h or strings.h

Chas Williams chas@cmf.nrl.navy.mil
Sun, 29 Jul 2001 11:20:02 -0400


in the 1.1.1 sources the string.h/strings.h problems seems to be have
been resolved in the following fashion:

#ifdef HAVE_STRINGS_H
#include <strings.h>
#else
#ifdef HAVE_STRING_H
#include <string.h>
#endif
#endif

for solaris this is fine.  almost everything is in strings.h.  for linux
this is a poor choice.  almost everything is in string.h.  unfortunately
both header files, strings.h and string.h seem to be included on both
systems.  espc on the ia64, where when you miss prototypes you know it.
what should be done about this?  

. make configure decide which is better
. just include both