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 38002 27e481da98bca19adb077c641249ad6b83621be3
parent 38001 d78ead15b14ff1ce22eee4c883cf9ef8b3a8e2d7
child 38003 9585630b05750f19763c38486a64e86061845461
push id2595
push userclokep@gmail.com
push dateMon, 04 May 2020 19:02:04 +0000
treeherdercomm-beta@f53913797371 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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;