summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-12 23:12:52 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-12 23:12:52 +0100
commit5ea442d5b8d0b9101737c7c4b7ff7cb89a1f7821 (patch)
treeea2cd7766ff0ba9170cd09909b7a1a6b73916d88
parent5d0ea0d04b694ab1e5e83009bcb8a493e1f9a341 (diff)
Make some older compilers happy by specifying -D_BSD_SOURCE and -std=gnu99.
-rw-r--r--Makefile2
-rw-r--r--TODO2
2 files changed, 1 insertions, 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.