Fix building on Linux without bluetooth headers.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6276 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-10-13 09:57:13 +00:00
parent f8d8445805
commit 77a3a5078e
4 changed files with 8 additions and 6 deletions

View File

@ -48,7 +48,10 @@
#include <IOBluetooth/IOBluetoothUserLib.h>
#include <string.h>
#elif defined(__linux__)
#include "config.h"
#if HAVE_BLUEZ
#include <bluetooth/bluetooth.h>
#endif
#endif
#ifdef WIIUSE_INTERNAL_H_INCLUDED
@ -153,7 +156,7 @@ typedef struct wiimote_t {
#if defined(__APPLE__)
WCONST IOBluetoothDeviceRef *device;
WCONST char bdaddr_str[18];
#elif defined(__linux__)
#elif defined(__linux__) && HAVE_BLUEZ
WCONST bdaddr_t bdaddr; /**< bt address (linux) */
WCONST char bdaddr_str[18]; /**< readable bt address */
WCONST int out_sock; /**< output socket */