summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
-rw-r--r--desktop/unx/source/pagein.c2
2 files changed, 7 insertions, 0 deletions
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 */