fix compilation (partially) of freebsd v1 APPLIED

Lorenz (xha): 1
 fix compilation (partially) of freebsd

 1 files changed, 1 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sebsite/generic-tetromino-game/patches/41128/mbox | git am -3
Learn more about email & git

[PATCH] fix compilation (partially) of freebsd Export this patch

for freebsd, IPPROTO_TCP is defined in <netinet/in.h>. i didn't do an #ifedef
because this might be also the case for other platforms and it probably is a
good idea to include both <arpa/inet.h> and <netinet/in.h> ?!
also, for anyone looking to compile on freebsd, you'll need to install the
"pkgconf" and "lua54" packages and replace lua5.4 with lua-5.4 in the
makefile in order to build. maby a configure script would be a good idea? idk.
 main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main.c b/main.c
index d51d77c..6a2ebd8 100644
--- a/main.c
+++ b/main.c
@@ -10,6 +10,7 @@
#include <sys/socket.h>

#include <arpa/inet.h>
#include <netinet/in.h>

#include <assert.h>
#include <netdb.h>