mirror of
https://github.com/Fishwaldo/minihttp.git
synced 2025-07-07 05:18:25 +00:00
Linux fix attempt #1 (it used to work, wtf!)
This commit is contained in:
parent
5d43abaf39
commit
fbff82e607
1 changed files with 5 additions and 2 deletions
|
@ -7,13 +7,12 @@
|
||||||
#ifndef MINIHTTPSOCKET_H
|
#ifndef MINIHTTPSOCKET_H
|
||||||
#define MINIHTTPSOCKET_H
|
#define MINIHTTPSOCKET_H
|
||||||
|
|
||||||
|
|
||||||
// ---- Compile config -----
|
// ---- Compile config -----
|
||||||
#define MINIHTTP_SUPPORT_HTTP
|
#define MINIHTTP_SUPPORT_HTTP
|
||||||
#define MINIHTTP_SUPPORT_SOCKET_SET
|
#define MINIHTTP_SUPPORT_SOCKET_SET
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
|
// Intentionally avoid pulling in any other headers
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
@ -91,7 +90,11 @@ protected:
|
||||||
|
|
||||||
bool _nonblocking; // Default true. If false, the current thread is blocked while waiting for input.
|
bool _nonblocking; // Default true. If false, the current thread is blocked while waiting for input.
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
intptr_t _s; // socket handle. really an int, but to be sure its 64 bit compatible as it seems required on windows, we use this.
|
intptr_t _s; // socket handle. really an int, but to be sure its 64 bit compatible as it seems required on windows, we use this.
|
||||||
|
#else
|
||||||
|
long _s;
|
||||||
|
#endif
|
||||||
|
|
||||||
std::string _host;
|
std::string _host;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue