aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@kimchee.(none)>2007-09-12 08:10:58 -0400
committerDavid S. Miller <davem@kimchee.(none)>2007-09-12 08:10:58 -0400
commit1da97f83a843f92678b614fcaebdb3e4ebd6c9dd (patch)
treefa4b516c20714b203c42b6e6b8b55811aef7e67a /net/bluetooth/hci_sock.c
parent577107e8e4cf9f6f4f5ef8350ac9a8faa6c3796d (diff)
[BLUETOOTH]: Fix non-COMPAT build of hci_sock.c
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r--net/bluetooth/hci_sock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
index d16ca8e53700..5ccea5fbd236 100644
--- a/net/bluetooth/hci_sock.c
+++ b/net/bluetooth/hci_sock.c
@@ -348,16 +348,17 @@ static inline void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_
348 348
349 skb_get_timestamp(skb, &tv); 349 skb_get_timestamp(skb, &tv);
350 350
351 data = &tv;
352 len = sizeof(tv);
353#ifdef CONFIG_COMPAT
351 if (msg->msg_flags & MSG_CMSG_COMPAT) { 354 if (msg->msg_flags & MSG_CMSG_COMPAT) {
352 struct compat_timeval ctv; 355 struct compat_timeval ctv;
353 ctv.tv_sec = tv.tv_sec; 356 ctv.tv_sec = tv.tv_sec;
354 ctv.tv_usec = tv.tv_usec; 357 ctv.tv_usec = tv.tv_usec;
355 data = &ctv; 358 data = &ctv;
356 len = sizeof(ctv); 359 len = sizeof(ctv);
357 } else {
358 data = &tv;
359 len = sizeof(tv);
360 } 360 }
361#endif
361 362
362 put_cmsg(msg, SOL_HCI, HCI_CMSG_TSTAMP, len, data); 363 put_cmsg(msg, SOL_HCI, HCI_CMSG_TSTAMP, len, data);
363 } 364 }