blob: 5ae52f2d4301c1470dc212427dbe3a0d5a600bc3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001From f5f2c2289eb35eb804c1c35e46ca41b58e4cae01 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 6 Apr 2015 14:13:49 -0700
4Subject: [PATCH] test: Include <sys/select.h> for select()
5
6As per posix we need to include this file otherwise we end up with errors like
7
8/home/kraj/work/bleeding/openembedded-core/build/tmp-musl/work/mips32r2-oe-linux-musl/libproxy/0.4.11-r0/libproxy-0.4.11/libproxy/test/get-pac-test.cpp: In member function 'bool TestServer::loop()':
9/home/kraj/work/bleeding/openembedded-core/build/tmp-musl/work/mips32r2-oe-linux-musl/libproxy/0.4.11-r0/libproxy-0.4.11/libproxy/test/get-pac-test.cpp:80:4: error: 'fd_set' was not declared in this scope
10 fd_set fds;
11 ^
12/home/kraj/work/bleeding/openembedded-core/build/tmp-musl/work/mips32r2-oe-linux-musl/libproxy/0.4.11-r0/libproxy-0.4.11/libproxy/test/get-pac-test.cpp:89:14: error: 'fds' was not declared in this scope
13 FD_ZERO (&fds);
14<JIRA TICKET #1>, <JIRA TICKET #2>, <JIRA TICKET #n> : <one line summary of change>
15
16Upstream-Status: Pending
17
18Signed-off-by: Khem Raj <raj.khem@gmail.com>
19---
20 libproxy/test/get-pac-test.cpp | 1 +
21 1 file changed, 1 insertion(+)
22
23diff --git a/libproxy/test/get-pac-test.cpp b/libproxy/test/get-pac-test.cpp
24index a61fc4b..bda4646 100644
25--- a/libproxy/test/get-pac-test.cpp
26+++ b/libproxy/test/get-pac-test.cpp
27@@ -3,6 +3,7 @@
28 #include <sstream>
29 #include <string>
30
31+#include <sys/select.h>
32 #include <sys/socket.h>
33 #include <netinet/in.h>
34 #include <arpa/inet.h>
35--
362.1.4
37