From ffe3e478657dc7126fca6329dfcedc49f4c726d9 Mon Sep 17 00:00:00 2001 From: Lars Volker Date: Wed, 10 May 2017 22:50:32 +0200 Subject: Only use O_CLOEXEC on platforms that support it Change a9fca58 made use of the O_CLOEXEC flag, which is not supported on older Linux kernels. This change makes the use contingent on kernel support. Testing: I manually compiled breakpad on CentOS 5.8 running kernel 2.6.18-308.8.2.el5.centos.plusxen. Bug: 730 Change-Id: I21dff928cfba3c156a56708913f65a0c7b5396a6 Reviewed-on: https://chromium-review.googlesource.com/498528 Reviewed-by: Mike Frysinger --- src/common/linux/guid_creator.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/common/linux/guid_creator.cc') diff --git a/src/common/linux/guid_creator.cc b/src/common/linux/guid_creator.cc index c92e69f4..6b5187c8 100644 --- a/src/common/linux/guid_creator.cc +++ b/src/common/linux/guid_creator.cc @@ -27,6 +27,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +#include "config.h" #include "common/linux/eintr_wrapper.h" #include "common/linux/guid_creator.h" -- cgit v1.2.1