paypal / gatt

Gatt is a Go package for building Bluetooth Low Energy peripherals
BSD 3-Clause "New" or "Revised" License
1.14k stars 285 forks source link

can not build hci-ble and l2cap-ble with Mac Os X #1

Closed vjeantet closed 10 years ago

vjeantet commented 10 years ago

Hello,

i tried to compile the two binaries in c/ directory. It fails with this error

$ GCC l2cap-ble.c -lbluetooth -o l2cap-ble
l2cap-ble.c:3:10: fatal error: 'sys/prctl.h' file not found
#include <sys/prctl.h>
         ^
1 error generated.

It seems that prctl is not available in osx (BSD-based systems)

josharian commented 10 years ago

gatt doesn't work on OS X at all right now -- linux/BlueZ only. (If/when OS X support lands, it'll use different c shims that work with XPC.)