gpredict icon indicating copy to clipboard operation
gpredict copied to clipboard

gpredict does not build with MUSL libc

Open dl1jbe opened this issue 1 year ago • 0 comments

Compiling under MUSL libc fails with 'implicit-function-declaration' for 'gethostbyname()' in gtk-rig.ctrl.c and gtk-rot-ctrl.c.

Further investigation shows that both files need the following feature macro to be defined:

#ifndef _GNU_SOURCE #define _GNU_SOURCE #endif

Under MUSL netdb.h exports gethostbyname() only if the macro is defined.

dl1jbe avatar Mar 14 '23 11:03 dl1jbe