CanOpen module probleme including Lely CANopen

Hi everyone,

I need to be able to use CanOpen and so I decided to create my own module, using Lely CANopen ( liblely-coapp ).
After a bit of trouble I manage to make a simple module to test the lib that work in simulation, but when I try to compile it for fmu-v5x I have the following error :

In file included from /usr/include/asm/ioctl.h:1,
                 from /usr/include/linux/ioctl.h:5,
                 from /usr/include/asm-generic/ioctls.h:5,
                 from /usr/include/asm/ioctls.h:1,
                 from /usr/include/bits/ioctls.h:23,
                 from /usr/include/sys/ioctl.h:26,
                 from /home/rovbot/projet/px4/platforms/common/include/px4_platform_common/defines.h:42,
                 from /home/rovbot/projet/px4/platforms/common/include/px4_platform_common/log.h:123,
                 from /home/rovbot/projet/px4/src/drivers/can/can.cpp:42:
/usr/include/asm-generic/ioctl.h:69: error: "_IOC" redefined [-Werror]
   69 | #define _IOC(dir,type,nr,size) \
      | 
compilation terminated due to -Wfatal-errors.

So I think I need the library to also compile when I compile px4 for fmu-v5x, but liblely-coapp uses automake and not cmake.
Does anyone know or have an idea how to make this work?