cangaroo icon indicating copy to clipboard operation
cangaroo copied to clipboard

error: ‘SIOCGSTAMPNS’ was not declared in this scope

Open brooc opened this issue 2 years ago • 3 comments

I'm getting the following error when building on Ubuntu 20.04:

driver/SocketCanDriver/SocketCanInterface.cpp:428:28: error: ‘SIOCGSTAMPNS’ was not declared in this scope; did you mean ‘SIOCGSTAMP_OLD’?
  428 |             if (ioctl(_fd, SIOCGSTAMPNS, &ts_rcv) == 0) {
      |                            ^~~~~~~~~~~~
      |                            SIOCGSTAMP_OLD

The fix from here is to include #include <linux/sockios.h> in src/driver/SocketCanDriver/SocketCanInterface.cpp

brooc avatar Sep 23 '22 17:09 brooc

add the file "#include <linux/sockios.h>" to driver/SocketCanDriver/SocketCanInterface.cpp

uanheng avatar Jan 10 '23 07:01 uanheng

Isn't that what I wrote?

brooc avatar Jan 10 '23 16:01 brooc

it works for me thanks a lot

ingjae avatar Aug 23 '23 06:08 ingjae