summaryrefslogtreecommitdiff
path: root/src/XvMC.c
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-03-05 11:56:54 -0500
committerGaetan Nadon <memsize@videotron.ca>2011-03-10 17:51:46 -0500
commit4f64c8dd12786f6b0ef1e4c8c8d992d43de6f895 (patch)
tree1cbc14aa3c1f033f4dc4c42e6b4d69c6b28bcd48 /src/XvMC.c
parenta37fab2dde1cb4ea0fb93ed811b14b2be9e52566 (diff)
config: use Automake defaults when checking for library functions.
Which follows a uniform naming convention. Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'src/XvMC.c')
-rw-r--r--src/XvMC.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/XvMC.c b/src/XvMC.c
index 3bf5a43..eb8e7e8 100644
--- a/src/XvMC.c
+++ b/src/XvMC.c
@@ -3,7 +3,7 @@
#endif
#include <stdio.h>
#include "XvMClibint.h"
-#ifdef HAS_SHM
+#ifdef HAVE_SHMAT
#ifndef Lynx
#include <sys/ipc.h>
#include <sys/shm.h>
@@ -11,7 +11,7 @@
#include <ipc.h>
#include <shm.h>
#endif /* Lynx */
-#endif /* HAS_SHM */
+#endif /* HAVE_SHMAT */
#include <unistd.h>
#include <sys/time.h>
#include <X11/extensions/Xext.h>
@@ -487,7 +487,7 @@ Status XvMCGetDRInfo(Display *dpy, XvPortID port,
char *tmpBuf = NULL;
CARD32 magic;
-#ifdef HAS_SHM
+#ifdef HAVE_SHMAT
volatile CARD32 *shMem;
struct timezone here;
struct timeval now;
@@ -503,7 +503,7 @@ Status XvMCGetDRInfo(Display *dpy, XvPortID port,
req->port = port;
magic = 0;
req->magic = 0;
-#ifdef HAS_SHM
+#ifdef HAVE_SHMAT
req->shmKey = shmget(IPC_PRIVATE, 1024, IPC_CREAT | 0600);
/*
@@ -541,14 +541,14 @@ Status XvMCGetDRInfo(Display *dpy, XvPortID port,
if (!_XReply (dpy, (xReply *) &rep, 0, xFalse)) {
UnlockDisplay (dpy);
SyncHandle ();
-#ifdef HAS_SHM
+#ifdef HAVE_SHMAT
if ( req->shmKey >= 0) {
shmdt( (const void *) shMem );
}
#endif
return -1;
}
-#ifdef HAS_SHM
+#ifdef HAVE_SHMAT
shmdt( (const void *) shMem );
#endif