OSDN Git Service

Make the test programs build
authorJon Smirl <jonsmirl@yahoo.com>
Sun, 10 Oct 2004 00:09:31 +0000 (00:09 +0000)
committerJon Smirl <jonsmirl@yahoo.com>
Sun, 10 Oct 2004 00:09:31 +0000 (00:09 +0000)
tests/dristat.c
tests/drmstat.c

index 13c598d..cb91132 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include "../../../xf86drm.h"
-#include "../xf86drmRandom.c"
-#include "../xf86drmHash.c"
-#include "../xf86drm.c"
+#include "xf86drm.h"
+#include "xf86drmRandom.c"
+#include "xf86drmHash.c"
+#include "xf86drm.c"
 
 #define DRM_VERSION 0x00000001
 #define DRM_MEMORY  0x00000002
index 9503fda..ed2aeb6 100644 (file)
@@ -85,7 +85,7 @@ void process_sigio(char *device)
     }
 
     sigio_fd = fd;
-    drmInstallSIGIOHandler(fd, handler);
+    /*  drmInstallSIGIOHandler(fd, handler); */
     for (;;) sleep(60);
 }
 
@@ -94,13 +94,13 @@ int main(int argc, char **argv)
     int            c;
     int            r  = 0;
     int            fd = -1;
-    drmHandle      handle;
+    drm_handle_t      handle;
     void           *address;
     char           *pt;
     unsigned long  count;
     unsigned long  offset;
     unsigned long  size;
-    drmContext     context;
+    drm_context_t  context;
     int            loops;
     char           buf[1024];
     int            i;