diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | src/ClientConnection.cpp | 1 | ||||
-rw-r--r-- | src/ServerConnection.cpp | 1 |
3 files changed, 3 insertions, 2 deletions
@@ -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 <unistd.h> #include <iostream> #include <sstream> +#include <cstring> 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 <signal.h> #include <unistd.h> #include <arpa/inet.h> +#include <strings.h> #include <sys/time.h> #include <sys/ioctl.h> #include <netdb.h> |