aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Volker <lv@cloudera.com>2017-05-10 22:50:32 +0200
committerMike Frysinger <vapier@chromium.org>2017-05-10 21:32:37 +0000
commitffe3e478657dc7126fca6329dfcedc49f4c726d9 (patch)
treeb2d19d5d30a4ae9d500dd182786bde3ca94b96b0 /src
parentFix race in ExceptionHandler::GenerateDump() (diff)
downloadbreakpad-ffe3e478657dc7126fca6329dfcedc49f4c726d9.tar.xz
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 <vapier@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/common/linux/guid_creator.cc1
-rw-r--r--src/config.h.in3
2 files changed, 4 insertions, 0 deletions
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"
diff --git a/src/config.h.in b/src/config.h.in
index a436d6ba..618e283d 100644
--- a/src/config.h.in
+++ b/src/config.h.in
@@ -45,6 +45,9 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Fallback definition for old systems */
+#undef O_CLOEXEC
+
/* Name of package */
#undef PACKAGE