We still need to include string.h for AIX (and possibly others)

when we are not using the system memset_r() function and rsize_t
is defined by the system headers.
This commit is contained in:
Todd C. Miller
2018-08-22 08:22:56 -06:00
parent 957f284bba
commit 5a0c86bb63

View File

@@ -24,9 +24,12 @@
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#ifndef HAVE_MEMSET_S #if !defined(HAVE_MEMSET_S) && !defined(rsize_t)
# include <stddef.h> /* for rsize_t */ # include <stddef.h> /* for rsize_t */
#endif /* HAVE_MEMSET_S */ # ifdef HAVE_STRING_H
# include <string.h> /* for rsize_t on AIX */
# endif /* HAVE_STRING_H */
#endif /* HAVE_MEMSET_S && rsize_t */
/* /*
* Macros and functions that may be missing on some operating systems. * Macros and functions that may be missing on some operating systems.