From 3b1df674d0ce327cd825b0c25c987acb13939108 Mon Sep 17 00:00:00 2001 From: Jiawei Ou Date: Mon, 29 Jan 2018 15:32:03 -0800 Subject: [PATCH] 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 . 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 Reviewed-by: Tommi Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#21841} --- rtc_base/checks.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/rtc_base/checks.cc b/rtc_base/checks.cc index 1b4c628ee7..820ca966a4 100644 --- a/rtc_base/checks.cc +++ b/rtc_base/checks.cc @@ -29,6 +29,7 @@ #elif defined(__native_client__) && __native_client__ #define LAST_SYSTEM_ERROR (0) #elif defined(WEBRTC_POSIX) +#include #define LAST_SYSTEM_ERROR (errno) #endif // WEBRTC_WIN