From 68826be36df93533776c694a9adba8633270e61b Mon Sep 17 00:00:00 2001 From: cflip Date: Wed, 14 Sep 2022 21:12:59 -0600 Subject: Fix a few compiler-dependent errors --- Makefile | 3 +-- src/ClientConnection.cpp | 1 + src/ServerConnection.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf63161..f9a6636 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -CC=clang++ CFLAGS=-pedantic -Wall --std=c++11 SRC=src/main.cpp \ @@ -10,4 +9,4 @@ SRC=src/main.cpp \ OUT=cfws $(OUT): $(SRC) - $(CC) $(CFLAGS) -o $(OUT) $(SRC) + $(CXX) $(CFLAGS) -o $(OUT) $(SRC) diff --git a/src/ClientConnection.cpp b/src/ClientConnection.cpp index 4e8b434..8982780 100644 --- a/src/ClientConnection.cpp +++ b/src/ClientConnection.cpp @@ -3,6 +3,7 @@ #include #include #include +#include ClientConnection::ClientConnection(int socket) : m_socket_fd(socket) diff --git a/src/ServerConnection.cpp b/src/ServerConnection.cpp index dd4fe86..f9eb666 100644 --- a/src/ServerConnection.cpp +++ b/src/ServerConnection.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3