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:
@ -29,6 +29,7 @@
|
||||
#elif defined(__native_client__) && __native_client__
|
||||
#define LAST_SYSTEM_ERROR (0)
|
||||
#elif defined(WEBRTC_POSIX)
|
||||
#include <errno.h>
|
||||
#define LAST_SYSTEM_ERROR (errno)
|
||||
#endif // WEBRTC_WIN
|
||||
|
||||
|
Reference in New Issue
Block a user