opnsense-ports/emulators/ppsspp/files/patch-native_net_http__headers.cpp
Franco Fichtner 3d6656350a */*: sync with upstream
Taken from: FreeBSD
2015-05-24 11:45:42 +02:00

26 lines
545 B
C++

--- native/net/http_headers.cpp.orig 2015-02-23 23:22:58 UTC
+++ native/net/http_headers.cpp
@@ -1,11 +1,5 @@
#include "net/http_headers.h"
-#ifdef _WIN32
-
-#include <winsock2.h> // for timeval
-
-#endif
-
#include <stdio.h>
#include <stdlib.h>
@@ -132,11 +126,6 @@ int RequestHeader::ParseHttpHeader(const
}
void RequestHeader::ParseHeaders(int fd) {
- // Get the request, with a timeout.
- struct ::timeval tv;
- tv.tv_sec = 5;
- tv.tv_usec = 0;
-
int line_count = 0;
// Loop through request headers.
while (true) {