mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
5.x's <usbhid.h> lacks __BEGIN_DECLS / __END_DECLS, so we need to wrap
it in extern "C" { }.
This commit is contained in:
parent
32d9453566
commit
ed66a44c6d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110777
2 changed files with 6 additions and 7 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= plib
|
PORTNAME= plib
|
||||||
PORTVERSION= 1.8.3
|
PORTVERSION= 1.8.3
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= x11-toolkits
|
CATEGORIES= x11-toolkits
|
||||||
MASTER_SITES= http://plib.sourceforge.net/dist/
|
MASTER_SITES= http://plib.sourceforge.net/dist/
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- ./src/js/jsBSD.cxx.orig Sat Mar 20 01:21:53 2004
|
--- src/js/jsBSD.cxx.orig Sat Mar 20 01:21:53 2004
|
||||||
+++ ./src/js/jsBSD.cxx Sun May 2 16:53:28 2004
|
+++ src/js/jsBSD.cxx Thu Jun 3 17:06:30 2004
|
||||||
@@ -44,7 +44,11 @@
|
@@ -44,7 +44,11 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -13,19 +13,17 @@
|
||||||
#ifdef HAVE_USB_JS
|
#ifdef HAVE_USB_JS
|
||||||
#if defined(__NetBSD__)
|
#if defined(__NetBSD__)
|
||||||
#ifdef HAVE_USBHID_H
|
#ifdef HAVE_USBHID_H
|
||||||
@@ -53,9 +57,14 @@
|
@@ -54,7 +58,12 @@
|
||||||
#include <usb.h>
|
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
+# if __FreeBSD_version < 500000
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
-#include <libusbhid.h>
|
-#include <libusbhid.h>
|
||||||
|
+# if __FreeBSD_version < 500000
|
||||||
+# include <libusbhid.h>
|
+# include <libusbhid.h>
|
||||||
}
|
|
||||||
+# else
|
+# else
|
||||||
+# define HAVE_USBHID_H 1
|
+# define HAVE_USBHID_H 1
|
||||||
+# include <usbhid.h>
|
+# include <usbhid.h>
|
||||||
+# endif
|
+# endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#include <dev/usb/usb.h>
|
#include <dev/usb/usb.h>
|
||||||
#include <dev/usb/usbhid.h>
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue