Skip to content

Replace _POSIX_SOURCE->_GNU_SOURCE for saslplugin

Alfred Persson Forsberg requested to merge catcream/libkgapi:gnu-source into master

The issue here is that NI_MAXHOST is used inside saslplugin/plugin_common.c. That is a GNU extension only defined when _GNU_SOURCE is defined. Declarning that this is POSIX source code is therefore misleading (_POSIX_SOURCE).

This replaces !25 (closed) bribbers/libkgapi@a11d8f31 because it's defining the source code as GNU and then imports a header re-defines the source code as non-GNU. This instead sets _GNU_SOURCE in the build system for salsplugin which obsoletes the previous MR.

Another solution would be to for example use IPPORT_RESERVED if you want to stay POSIX-pure.

Signed-off-by: Alfred Persson Forsberg cat@catcream.org

Edited by Alfred Persson Forsberg

Merge request reports