-
Emil Velikov authored
Windows/MS has dropped strerror_r support due to it _not_ being thread-safe. At the same time, every *nix man page claims the opposite. The recommendation is to use strerror_s, although when building with mingw-w64 we link against msvcrt.dll which does not provide the symbol under Windows XP. The issue is resolved in mingw-w64 master branch (Rev.6559), and stable (v3.x). Any version after mingw-w64-crt 3.1.0 should be OK (Archlinux users need v3.1.0-3 or later). v2: Update the commit message - Archlinux package 3.1.0-3 has the fix. v3: Move the definition to c99_compat.h v4: Explain what the function is (if not C99 standard). Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
4d0ee517