solaris: Define _STDC_C11_BCI for memset_s prototype
On Solaris, the memset_s() prototype is only visible if _STDC_C11_BCI
is defined.
93518bfab4
("use memset_s")
introduced warnings on Solaris
warning: implicit declaration of function âmemset_sâ;
did you mean âmemsetâ? [-Wimplicit-function-declaration]
Change-Id: Ia02db5e96021a26fb30aa1a593ef6a2b3e3a5b5f
This commit is contained in:
@@ -11,6 +11,8 @@ case "$host" in
|
||||
*-*-solaris2.1[[1-9]])
|
||||
AC_DEFINE([__EXTENSIONS__], [1],
|
||||
[Enable general extensions on Solaris.])
|
||||
AC_DEFINE([_STDC_C11_BCI], [1],
|
||||
[Enable C11 prototypes for memset_s and friends])
|
||||
sunos=511
|
||||
;;
|
||||
*-*-solaris2.[[89]] | *-*-solaris2.10)
|
||||
|
Reference in New Issue
Block a user