[Xfce4-commits] [xfce/xfwm4] 01/02: Check for stropts.h to fix BSD build.

noreply at xfce.org noreply at xfce.org
Sat Jul 26 01:25:31 CEST 2014


This is an automated email from the git hooks/post-receive script.

nick pushed a commit to branch master
in repository xfce/xfwm4.

commit f620c4539036981cc2393d9a1421f937d8f067c6
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Jul 26 01:10:02 2014 +0200

    Check for stropts.h to fix BSD build.
---
 configure.ac.in  |    1 +
 src/compositor.c |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/configure.ac.in b/configure.ac.in
index 5a347a1..9ec3b40 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -63,6 +63,7 @@ AC_C_INLINE
 
 dnl check for standard header files
 AC_HEADER_STDC
+AC_CHECK_HEADERS([stropts.h])
 AC_CHECK_FUNCS([daemon setsid])
 AC_CHECK_FUNCS(opendir)
 
diff --git a/src/compositor.c b/src/compositor.c
index 843ce65..1bf3322 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -41,7 +41,9 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <drm.h>
+#ifdef HAVE_STROPTS_H
 #include <stropts.h>
+#endif
 #endif /* HAVE_LIBDRM */
 
 #include "display.h"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list