summaryrefslogtreecommitdiff
path: root/graphics/cnxtview/patches/patch-ab
blob: 3597b468db85ce85c628be9344cbbcee1374b863 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-ab,v 1.1 2006/04/22 17:24:27 joerg Exp $

--- cnxtview.c.orig	2004-01-13 17:20:15.000000000 +0000
+++ cnxtview.c
@@ -45,7 +45,11 @@
 #include <string.h>
 #include <err.h>
 
+#if defined(__DragonFly__)
+#include <bus/usb/usb.h>
+#else
 #include <dev/usb/usb.h>
+#endif
 
 #include <gtk/gtk.h>
 #include <gdk_imlib.h>
@@ -78,8 +82,8 @@ int main(int argc, char *argv[])
     int i;
     int ret;
     
-    fd = NULL;
-    efd = NULL;
+    fd = 0;
+    efd = 0;
 
     gtk_init(&argc, &argv);
     gdk_imlib_init();