linux-can / socketcand

Server to access CAN sockets over ASCII protocol
169 stars 43 forks source link

Fix GCC10 build failure #17

Closed yegorich closed 4 years ago

yegorich commented 4 years ago

GCC10 breaks on multiple definitions:

ld: /tmp/ccFiGYO7.o:(.bss+0x114): multiple definition of `tv'; /tmp/cc7f6J5h.o:(.bss+0x80): first defined here

Change the scope of the related variables.

Signed-off-by: Yegor Yefremov yegorslists@googlemail.com

yegorich commented 4 years ago

The change is only compile tested.

hartkopp commented 4 years ago

When it is compile tested then the compiler seems to be fine with the visibility too ;-) Thanks Yegor!