summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--src/ClientConnection.cpp1
-rw-r--r--src/ServerConnection.cpp1
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 <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>