Merge upstream version 2.0.1 from upstream into tizen
[platform/upstream/libjpeg-turbo.git] / tjbench.c
index 863e534..46e0e9d 100644 (file)
--- a/tjbench.c
+++ b/tjbench.c
   printf("ERROR in line %d while %s:\n%s\n", __LINE__, op, err); \
   retval = -1;  goto bailout; \
 }
+
+#if _USE_PRODUCT_TV
+#define _throwunix(m) { \
+       char err_str[256]; \
+       strerror_r(errno, err_str, 256); \
+       _throw(m, err_str) \
+}
+#else
 #define _throwunix(m)  _throw(m, strerror(errno))
+#endif
 
 char tjErrorStr[JMSG_LENGTH_MAX] = "\0", tjErrorMsg[JMSG_LENGTH_MAX] = "\0";
 int tjErrorLine = -1, tjErrorCode = -1;