Skip to content

Commit 23b2106

Browse files
committed
fix: portable includes for FreeBSD and libstdc++
1 parent af66f7d commit 23b2106

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/simple-httpd/access_control.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
#include <ws2tcpip.h>
1717
#else
1818
#include <arpa/inet.h>
19+
#include <netinet/in.h>
20+
#include <sys/socket.h>
1921
#endif
2022

2123
namespace simple_httpd {

src/simple-httpd/server.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#include <algorithm>
3030
#include <atomic>
3131
#include <chrono>
32+
#include <condition_variable>
3233
#include <ctime>
3334
#include <fstream>
3435
#include <memory>

0 commit comments

Comments
 (0)