Skip to content

Avoid redefining _FORTIFY_SOURCE

Tony Finch requested to merge fanf-avoid-fortify-source-redefinition into main

Some compilers have a built-in definition of the _FORTIFY_SOURCE macro that differs from BIND's preferred setting. This causes errors like the one quoted below. The solution is to undefine the macro before defining it. A similar fix was recently committed to glibc.

<command line>: error: '_FORTIFY_SOURCE' macro redefined
<built-in>: note: previous definition is here

Merge request reports