diff options
Diffstat (limited to 'sysutils/netbt-hcidump/patches/patch-al')
-rw-r--r-- | sysutils/netbt-hcidump/patches/patch-al | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sysutils/netbt-hcidump/patches/patch-al b/sysutils/netbt-hcidump/patches/patch-al new file mode 100644 index 00000000000..d1d60070862 --- /dev/null +++ b/sysutils/netbt-hcidump/patches/patch-al @@ -0,0 +1,63 @@ +$NetBSD: patch-al,v 1.2.4.2 2014/12/27 11:59:22 plunky Exp $ + +--- src/bt_lib.c.orig 2011-06-19 12:38:18.000000000 +0000 ++++ src/bt_lib.c +@@ -35,8 +35,8 @@ + #include <string.h> + #include <sys/socket.h> + +-#include "bluetooth.h" +-#include "hci.h" ++#include <bluetooth/bluetooth.h> ++#include <bluetooth/hci.h> + + void baswap(bdaddr_t *dst, const bdaddr_t *src) + { +@@ -48,6 +48,7 @@ void baswap(bdaddr_t *dst, const bdaddr_ + d[i] = s[5-i]; + } + ++#if 0 + char *batostr(const bdaddr_t *ba) + { + char *str = bt_malloc(18); +@@ -73,6 +74,7 @@ bdaddr_t *strtoba(const char *str) + + return ba; + } ++#endif + + int ba2str(const bdaddr_t *ba, char *str) + { +@@ -80,6 +82,7 @@ int ba2str(const bdaddr_t *ba, char *str + ba->b[5], ba->b[4], ba->b[3], ba->b[2], ba->b[1], ba->b[0]); + } + ++#if 0 + int str2ba(const char *str, bdaddr_t *ba) + { + bdaddr_t b; +@@ -175,6 +178,7 @@ int basnprintf(char *str, size_t size, c + + return len; + } ++#endif + + void *bt_malloc(size_t size) + { +@@ -186,6 +190,7 @@ void bt_free(void *ptr) + free(ptr); + } + ++#if 0 + /* Bluetooth error codes to Unix errno mapping */ + int bt_error(uint16_t code) + { +@@ -260,6 +265,7 @@ int bt_error(uint16_t code) + return ENOSYS; + } + } ++#endif + + char *bt_compidtostr(int compid) + { |