Skip to content

Commit 21f5aa1

Browse files
author
Will Sobel
committed
Fixed XP server backport.
1 parent 474d7ff commit 21f5aa1

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

agent/agent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void Agent::start()
196196
}
197197

198198
// Start the server. This blocks until the server stops.
199-
server::http_1a::start();
199+
server_http::start();
200200
}
201201
catch (dlib::socket_error &e) {
202202
sLogger << LFATAL << "Cannot start server: " << e.what();

agent/ref_counted.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
#include "ref_counted.hpp"
1818
#include "dlib/threads.h"
19-
#include <libkern/OSAtomic.h>
20-
2119

2220
static dlib::rmutex sRefMutex;
2321

lib/dlib/sockets/sockets_kernel_1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ namespace dlib
331331

332332
static inline ADDRESS_FAMILY sockaddr_family(const std::string &ip, int &len)
333333
{
334-
return AF_INET;
335334
len = sizeof(sockaddr_in);
335+
return AF_INET;
336336
}
337337

338338
static inline bool set_sockaddr_address(sockaddr_storage &sin, const std::string &ip)

0 commit comments

Comments
 (0)