summaryrefslogtreecommitdiff
path: root/config.tests/x11/mitshm/mitshm.cpp
blob: b9be2e0e833f99e43f6def505acf5b26ca8ec100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifdef Q_OS_HPUX
#error "MITSHM not supported on HP-UX."
#else
#include <X11/Xlib.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>

int main(int, char **)
{
    Display *dpy = 0;
    int minor;
    int major;
    int pixmaps;
    if (dpy && XShmQueryVersion(dpy, &major, &minor, &pixmaps)) {
        minor = 0;
        major = 0;
        pixmaps = 0;
    }
    return 0;
}
#endif