Change Makefile to permit usage of sigaction
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 29 Aug 2024 08:06:53 +0000 (10:06 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 29 Aug 2024 08:06:53 +0000 (10:06 +0200)
The C99 standard does not include the sigaction function and structure
as they are (probably) GNU extensions. Using the GNU99 version instead
permits the extension usage.

Makefile

index b100a973bfc0efec75ed28d3afa1939282bc5c66..d9ab6f96bb1d95db66e558a480432e7ed5425040 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 CC := gcc
-CFLAGS = -std=c99 -Wall -Wextra -Werror -Wpedantic
+CFLAGS = -std=gnu99 -Wall -Wextra -Werror -Wpedantic
 
 ifneq ("$(wildcard .debug)","")
        CFLAGS += -g