Compilation error when enabling ADVANCED_FAILSAFE

Hello!
I have a small problem. I want to use the ADVANCED_FAILSAFE, but I heard that the options have been deprecated on newer versions, and that I need to re-compile the source code with the line # define ADVANCED_FAILSAFE DISABLED changed to # define ADVANCED_FAILSAFE ENABLED in config.h .
To recompile the code, I followed the instructions on https://ardupilot.org/dev/docs/building-setup-linux.html#building-setup-linux annd on the github page. Bu I got the following errors:


I wanted to know if some of you already tried this manipulation, and yes if it worked on Arducopter 4.0.4 and Arducopter 4.0.4 ? It works for me with Arducopter 3.6.9 but i’d like to use 4.0.4 …
Also, do you have any idea about the solution of this problem?

Thanks!!!

Here is how to fix it:


You can git cherry-pick 86db3a165d678beaa9ede2733ae7c4da16968cb9 that commit into your local Copter-4.0 to fix it locally, or wait for my PR. I will backport this one in the near future.