summaryrefslogtreecommitdiff
path: root/usrp/host/apps/usrper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'usrp/host/apps/usrper.cc')
-rw-r--r--usrp/host/apps/usrper.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/usrp/host/apps/usrper.cc b/usrp/host/apps/usrper.cc
index fe8ff90d2..593cd7921 100644
--- a/usrp/host/apps/usrper.cc
+++ b/usrp/host/apps/usrper.cc
@@ -19,22 +19,23 @@
* Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301 USA
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-#include <usb.h> /* needed for usb functions */
#include <getopt.h>
#include <assert.h>
#include <errno.h>
#include "usrp/usrp_prims.h"
#include "usrp_spi_defs.h"
-#include <string.h>
char *prog_name;
-
static void
set_progname (char *path)
{
@@ -194,7 +195,7 @@ main (int argc, char **argv)
usrp_one_time_init ();
- struct usb_device *udev = usrp_find_device (which_board, fx2_ok_p);
+ libusb_device *udev = usrp_find_device (which_board, fx2_ok_p);
if (udev == 0){
fprintf (stderr, "%s: failed to find usrp[%d]\n", prog_name, which_board);
exit (1);
@@ -208,7 +209,7 @@ main (int argc, char **argv)
fprintf (stderr, "%s: found unconfigured FX2; needs firmware.\n", prog_name);
}
- struct usb_dev_handle *udh = usrp_open_cmd_interface (udev);
+ libusb_device_handle *udh = usrp_open_cmd_interface (udev);
if (udh == 0){
fprintf (stderr, "%s: failed to open_cmd_interface\n", prog_name);
exit (1);