summaryrefslogtreecommitdiffstats
path: root/config.tests/x11/xsync/xsync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/x11/xsync/xsync.cpp')
-rw-r--r--config.tests/x11/xsync/xsync.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.tests/x11/xsync/xsync.cpp b/config.tests/x11/xsync/xsync.cpp
index a7175de..8eea850 100644
--- a/config.tests/x11/xsync/xsync.cpp
+++ b/config.tests/x11/xsync/xsync.cpp
@@ -41,12 +41,16 @@
#include <X11/Xlib.h>
#include <X11/Xutil.h>
+extern "C" {
#include <X11/extensions/sync.h>
+}
int main(int, char **)
{
XSyncValue value;
(void*)&XSyncIntToValue;
(void*)&XSyncCreateCounter;
- return 0;
+ int a, b;
+ Status ret = XSyncInitialize(NULL, &a, &b);
+ return ret;
}