broadway: Add configure checks for sys/mman.h

This commit is contained in:
Tarnyko 2013-06-13 17:58:53 +02:00 committed by Alexander Larsson
parent 0451d2c9b8
commit b20d949470
4 changed files with 13 additions and 0 deletions

View File

@ -700,6 +700,9 @@ LIBS=$gtk_save_LIBS
AC_CHECK_HEADERS(pwd.h,
AC_DEFINE(HAVE_PWD_H, 1,
[Define to 1 if pwd.h is available]))
AC_CHECK_HEADERS(sys/mman.h,
AC_DEFINE(HAVE_SYS_MMAN_H, 1,
[Define to 1 if time.h is available]))
AC_CHECK_HEADERS(sys/time.h,
AC_DEFINE(HAVE_SYS_TIME_H, 1,
[Define to 1 if time.h is available]))

View File

@ -1,3 +1,5 @@
#include "config.h"
#include "broadway-server.h"
#include "broadway-output.h"
@ -12,7 +14,9 @@
#include <errno.h>
#include <unistd.h>
#include <crypt.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/types.h>

View File

@ -1,6 +1,8 @@
#include "config.h"
#include <string.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>

View File

@ -1,4 +1,8 @@
#include "config.h"
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <sys/stat.h>
#include <fcntl.h>