2003-03-12 09:54:11 +01:00
|
|
|
#ifdef HAVE_CONFIG_H
|
2004-01-13 08:35:28 +01:00
|
|
|
/* Now include the setup.h file from libcurl's private libdir (the source
|
|
|
|
version, but that might include "config.h" from the build dir so we need
|
|
|
|
both of them in the include path), so that we get good in-depth knowledge
|
|
|
|
about the system we're building this on */
|
|
|
|
#include "setup.h"
|
2003-03-12 09:54:11 +01:00
|
|
|
#endif
|
|
|
|
|
2003-04-15 15:32:26 +02:00
|
|
|
#include <curl.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
2004-03-03 11:09:16 +01:00
|
|
|
#ifdef HAVE_SYS_SOCKET_H
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_SELECT_H
|
|
|
|
/* since so many tests use select(), we can just as well include it here */
|
|
|
|
#include <sys/select.h>
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_UNISTD_H
|
|
|
|
/* at least somewhat oldish FreeBSD systems need this for select() */
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
2003-11-06 14:07:54 +01:00
|
|
|
#ifndef FALSE
|
|
|
|
#define FALSE 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TRUE
|
|
|
|
#define TRUE 1
|
|
|
|
#endif
|
|
|
|
|
2002-12-13 17:22:57 +01:00
|
|
|
extern char *arg2; /* set by first.c to the argv[2] or NULL */
|
2004-02-19 13:59:57 +01:00
|
|
|
int test(char *URL); /* the actual test function provided by each individual
|
|
|
|
libXXX.c file */
|