#define _BASHANSI_H_
#if defined (HAVE_STRING_H)
+# if ! defined (STDC_HEADERS) && defined (HAVE_MEMORY_H)
+# include <memory.h>
+# endif
# include <string.h>
-#else
-# include <strings.h>
#endif /* !HAVE_STRING_H */
+#if defined (HAVE_STRINGS_H)
+# include <strings.h>
+#endif /* !HAVE_STRINGS_H */
+
#if defined (HAVE_STDLIB_H)
# include <stdlib.h>
#else