Commit 8777ba7e authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

include sys/select.h to prevent picky compiler warnings when using select()

without proto
parent a3966919
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
#endif
#include <sys/time.h>
#include <sys/types.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

/*
 * Source code in here hugely as reported in bug report 651460 by
+3 −0
Original line number Diff line number Diff line
@@ -5,6 +5,9 @@
#endif
#include <sys/time.h>
#include <sys/types.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

/*
 * Source code in here hugely as reported in bug report 651464 by
+7 −0
Original line number Diff line number Diff line
#include "test.h"

#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

int test(char *URL)
{
  CURL* curls;
+3 −0
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@
#endif
#include <sys/time.h>
#include <sys/types.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

#include <openssl/opensslv.h>
#include <openssl/x509v3.h>