summaryrefslogtreecommitdiffstats
path: root/sdpd
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2004-04-03 08:27:06 +0000
committerMarcel Holtmann <marcel@holtmann.org>2004-04-03 08:27:06 +0000
commitf3b2f00568b83b26308e0e84bf20316f65747f86 (patch)
treea5ebaaadde680358c1085668db8fb4c4f38afd99 /sdpd
parent6f84ccd25d72e5b1a836bd2c44b95798a3972a6c (diff)
Use unaligned access functions from core library
Diffstat (limited to 'sdpd')
-rw-r--r--sdpd/request.c2
-rw-r--r--sdpd/sdpd.h3
-rw-r--r--sdpd/service.c2
3 files changed, 7 insertions, 0 deletions
diff --git a/sdpd/request.c b/sdpd/request.c
index ff3b5642..f587cada 100644
--- a/sdpd/request.c
+++ b/sdpd/request.c
@@ -38,7 +38,9 @@
#include <malloc.h>
#include <syslog.h>
#include <netinet/in.h>
+#include <sys/socket.h>
+#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
#include <bluetooth/sdp_lib.h>
diff --git a/sdpd/sdpd.h b/sdpd/sdpd.h
index 37c685e2..c669e603 100644
--- a/sdpd/sdpd.h
+++ b/sdpd/sdpd.h
@@ -30,6 +30,9 @@
#ifndef SDPD_H
#define SDPD_H
+#define sdp_get_unaligned bt_get_unaligned
+#define sdp_put_unaligned bt_put_unaligned
+
#define SDPINF(fmt, arg...) syslog(LOG_INFO, fmt "\n", ## arg)
#define SDPERR(fmt, arg...) syslog(LOG_ERR, "%s: " fmt "\n", __func__ , ## arg)
diff --git a/sdpd/service.c b/sdpd/service.c
index 4d03c917..c69aa509 100644
--- a/sdpd/service.c
+++ b/sdpd/service.c
@@ -35,7 +35,9 @@
*/
#include <netinet/in.h>
+#include <sys/socket.h>
+#include <bluetooth/bluetooth.h>
#include <bluetooth/sdp.h>
#include <bluetooth/sdp_lib.h>