[Libreoffice-commits] core.git: configure.ac desktop/unx
Gleb Popov (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 15 08:00:15 UTC 2020
configure.ac | 5 +++++
desktop/unx/source/pagein.c | 2 ++
2 files changed, 7 insertions(+)
New commits:
commit 30a5d201144cba04dd708c11d87cc5517c04c0c3
Author: Gleb Popov <6yearold at gmail.com>
AuthorDate: Mon Oct 12 18:50:00 2020 +0400
Commit: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Thu Oct 15 09:59:38 2020 +0200
Do not include <sys/sysmacros.h> header unconditionally, but perform a check for it in the configure script.
This header is missing at least on FreeBSD.
Change-Id: Iecb8c35e2ea8af84cf1488334a4d39ba0b5af7e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104214
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/configure.ac b/configure.ac
index 7449a78f7962..180200f0d2ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5289,6 +5289,11 @@ dnl Check for syslog header
dnl ===================================================================
AC_CHECK_HEADER(syslog.h, AC_DEFINE(HAVE_SYSLOG_H))
+dnl ===================================================================
+dnl Check for sysmacros header
+dnl ===================================================================
+AC_CHECK_HEADER(sys/sysmacros.h, AC_DEFINE(HAVE_SYS_SYSMACROS_H))
+
dnl Set the ENABLE_WERROR variable. (Activate --enable-werror)
dnl ===================================================================
AC_MSG_CHECKING([whether to turn warnings to errors])
diff --git a/desktop/unx/source/pagein.c b/desktop/unx/source/pagein.c
index 03aa50d99c9d..2f42fd1df9dc 100644
--- a/desktop/unx/source/pagein.c
+++ b/desktop/unx/source/pagein.c
@@ -25,7 +25,9 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
+#endif
#include <sys/types.h>
/* do_pagein */
More information about the Libreoffice-commits
mailing list