Skip to content

Commit eba2ab5

Browse files
committed
fix: defind ft macros & fix includes
1 parent bef1a81 commit eba2ab5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/client.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
// feature test macro for getline() from man pages
2+
#define _POSIX_C_SOURCE 200809L
3+
14
#include <netdb.h>
5+
#include <signal.h>
26
#include <stdbool.h>
37
#include <stdio.h>
48
#include <stdlib.h>

src/server.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// feature test macro for getaddrinfo() from man pages
2+
#define _POSIX_C_SOURCE 200112L
3+
14
#include <netdb.h> // for getaddrinfo()
25
#include <poll.h> // for poll()
36
#include <signal.h> // for signal()

0 commit comments

Comments
 (0)