Add the missing header for errno variable in checks.cc

Variable `LAST_SYSTEM_ERROR` was introduced in https://webrtc-review.googlesource.com/c/src/+/32780.
It seems to be the same codeblock in `physicalsocketserver.cc`, only difference is it did not
include the header <errno.h>.

Also, probably a good idea to make the include conditional.

Bug: None
Change-Id: I3241dd83be4a248c6c1db2fab8f924a185e354cb
Reviewed-on: https://webrtc-review.googlesource.com/45864
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21841}
This commit is contained in:
Jiawei Ou
2018-01-29 15:32:03 -08:00
committed by Commit Bot
parent e062385dc7
commit 3b1df674d0

View File

@ -29,6 +29,7 @@
#elif defined(__native_client__) && __native_client__ #elif defined(__native_client__) && __native_client__
#define LAST_SYSTEM_ERROR (0) #define LAST_SYSTEM_ERROR (0)
#elif defined(WEBRTC_POSIX) #elif defined(WEBRTC_POSIX)
#include <errno.h>
#define LAST_SYSTEM_ERROR (errno) #define LAST_SYSTEM_ERROR (errno)
#endif // WEBRTC_WIN #endif // WEBRTC_WIN