Commit 180f7d62 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40553
parent 2cd7450f
......@@ -32,6 +32,8 @@ static char rcsid =
"@(#) $Id$";
#endif
#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
......@@ -406,11 +408,20 @@ report_alloc(struct report *r, struct report_desc *rd, int repind)
{
int len;
#ifdef USBHID_NEW
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
#ifdef __FreeBSD__
# if (__FreeBSD_version >= 470000)
len = hid_report_size(rd, r->rid, repinfo[repind].kind);
# else
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
#endif
#else
# ifdef USBHID_NEW
len = hid_report_size(rd, repinfo[repind].kind, &r->rid);
# else
len = hid_report_size(rd, repinfo[repind].kind, r->rid);
# endif
#endif
if (len < 0) {
SDL_SetError("Negative HID report size");
return (-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment