From 5ea442d5b8d0b9101737c7c4b7ff7cb89a1f7821 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 12 Sep 2019 23:12:52 +0100 Subject: Make some older compilers happy by specifying -D_BSD_SOURCE and -std=gnu99. --- Makefile | 2 +- TODO | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index dee20c7..4866dfc 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ CC=gcc blabouncer: blabouncer.c functions.c sockets.c config.c replay.c logging.c message.c - $(CC) -D_DEFAULT_SOURCE -Wall -Wextra -lssl -lcrypto -o blabouncer blabouncer.c functions.c sockets.c config.c replay.c logging.c message.c + $(CC) -D_DEFAULT_SOURCE -D_BSD_SOURCE -std=gnu99 -Wall -Wextra -lssl -lcrypto -o blabouncer blabouncer.c functions.c sockets.c config.c replay.c logging.c message.c diff --git a/TODO b/TODO index 8c8e18c..d20e4f7 100644 --- a/TODO +++ b/TODO @@ -10,6 +10,4 @@ Ensure replayed lines don't exceed IRC message maximum length due to inserted ti Is there a way to log nick changes to the normal log despite not tracking nicks in each channel? (We do track channel names themselves.) -Doesn't compile on old GCC - maybe set -std=gnu99. - Log QUIT messages in channels if the quitting user was in them - requires tracking users in channels. -- cgit v1.2.3