Bug 1630376 - Add errno.h header to RNP clang-cl compatibility code. DONTBUILD r=kaie
authorRob Lemley <rob@thunderbird.net>
Tue, 21 Apr 2020 01:00:13 +0000
changeset 38890 27e481da98bca19adb077c641249ad6b83621be3
parent 38889 d78ead15b14ff1ce22eee4c883cf9ef8b3a8e2d7
child 38891 9585630b05750f19763c38486a64e86061845461
push id401
push userclokep@gmail.com
push dateMon, 01 Jun 2020 20:41:59 +0000
reviewerskaie
bugs1630376
Bug 1630376 - Add errno.h header to RNP clang-cl compatibility code. DONTBUILD r=kaie Differential Revision: https://phabricator.services.mozilla.com/D71092
third_party/niwcompat/sys/time.h
--- a/third_party/niwcompat/sys/time.h
+++ b/third_party/niwcompat/sys/time.h
@@ -6,16 +6,17 @@
 #ifndef _NIW_SYS_TIME_H
 #define _NIW_SYS_TIME_H 1
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 /* MS Win SDK Headers */
+#include <errno.h>
 #include <sys/timeb.h> /* For _ftime_s */
 #include <time.h>
 
 #ifndef _TIMEVAL_DEFINED
 #define _TIMEVAL_DEFINED
 struct timeval {
   long tv_sec;
   long tv_usec;