mrash / fwknop

Single Packet Authorization > Port Knocking
http://www.cipherdyne.org/fwknop/
GNU General Public License v2.0
1.09k stars 228 forks source link

Fix multiple definitions of log_level_t #328

Closed EDEADLINK closed 3 years ago

EDEADLINK commented 3 years ago

When compiling with -fno-common linking fails, because log_level_t is a global variable instead of a typedef as was probably intended given the name.

gcc 10 changed the default from -fcommon to -fno-common, but this change is enough for gcc 10.2.0 to compile on my machine, without having to set -fcommon manually.