From 42226f6ba7fbccd7d7cb0f9ce431be477bdf9a0c Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 16 Jun 2006 22:07:08 +0000 Subject: Define HAS_SHM if shmat() is found Include to get HAS_SHM define. --- ChangeLog | 8 ++++++++ configure.ac | 2 ++ src/XvMC.c | 3 +++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index c03cb48..311e3e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-06-16 Alan Coopersmith + + * configure.ac: + Define HAS_SHM if shmat() is found + + * src/XvMC.c: + Include to get HAS_SHM define. + 2006-04-26 Adam Jackson * configure.ac: diff --git a/configure.ac b/configure.ac index 16813bc..e9ac0cd 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,8 @@ PKG_CHECK_MODULES(XVMC, x11 xext xv xextproto videoproto) AC_SUBST(XVMC_CFLAGS) AC_SUBST(XVMC_LIBS) + +AC_CHECK_FUNC([shmat], AC_DEFINE(HAS_SHM,1,[Has shm*() functions])) XORG_CHECK_MALLOC_ZERO XORG_RELEASE_VERSION diff --git a/src/XvMC.c b/src/XvMC.c index 8db6409..16327c8 100644 --- a/src/XvMC.c +++ b/src/XvMC.c @@ -2,6 +2,9 @@ #define NEED_REPLIES +#ifdef HAVE_CONFIG_H +#include +#endif #include #include "XvMClibint.h" #ifdef HAS_SHM -- cgit v1.2.3