Ensure to set _GNU_SOURCE for POSIX compliance with signals

The systemd bus headers aren't setting a POSIX compliance level so we
define the catch-all to ensure the build doesn't error out, as seen with
issue #3. This is due to the reliance of `siginfo_t`, which requires a
minimum POSIX level of `199309L` when using glibc.

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty 2018-04-10 14:04:07 +01:00 committed by Marc Di Luzio
parent 69db9c2a61
commit 8fb77e639d
2 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,8 @@ POSSIBILITY OF SUCH DAMAGE.
*/
#define _GNU_SOURCE
#include "dbus_messaging.h"
#include "daemonize.h"
#include "gamemode.h"

View File

@ -28,6 +28,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
#define _GNU_SOURCE
#include <dlfcn.h>
#include <errno.h>
#include <stdio.h>