Browse Source

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>
Ikey Doherty 7 years ago
parent
commit
8fb77e639d
2 changed files with 5 additions and 0 deletions
  1. 2 0
      daemon/dbus_messaging.c
  2. 3 0
      lib/client_impl.c

+ 2 - 0
daemon/dbus_messaging.c

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

+ 3 - 0
lib/client_impl.c

@@ -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>