string: strerror_r() for windows.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 13 Feb 2014 18:26:03 +0000 (10:26 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 13 Feb 2014 22:09:30 +0000 (14:09 -0800)
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/string.h.in

index 9e8fba9..bbdaeb4 100644 (file)
@@ -35,6 +35,7 @@
 #define strtok_r strtok_s
 #define strcasecmp _stricmp
 #define strncasecmp _strnicmp
+#define strerror_r(errnum, buf, buflen) strerror_s(buf, buflen, errnum)
 #endif
 
 #ifndef HAVE_STRNLEN