We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6511bc3 commit 029f7f2Copy full SHA for 029f7f2
can/interfaces/udp_multicast/bus.py
@@ -5,6 +5,7 @@
5
import struct
6
import time
7
import warnings
8
+import platform
9
from typing import List, Optional, Tuple, Union
10
11
import can
@@ -21,6 +22,8 @@
21
22
ioctl_supported = False
23
pass
24
25
+# All ioctls aren't supported on MacOS.
26
+is_macos = platform.system() == "Darwin"
27
28
log = logging.getLogger(__name__)
29
@@ -402,7 +405,7 @@ def recv(
402
405
self.max_buffer
403
406
)
404
407
- if ioctl_supported:
408
+ if ioctl_supported and not is_macos:
409
result_buffer = ioctl(
410
self._socket.fileno(),
411
SIOCGSTAMP,
0 commit comments