test.h 976 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifdef HAVE_CONFIG_H
  2. /* Now include the setup.h file from libcurl's private libdir (the source
  3. version, but that might include "config.h" from the build dir so we need
  4. both of them in the include path), so that we get good in-depth knowledge
  5. about the system we're building this on */
  6. #include "setup.h"
  7. #endif
  8. #include <curl.h>
  9. #include <stdio.h>
  10. #include <string.h>
  11. #ifdef HAVE_SYS_SOCKET_H
  12. #include <sys/socket.h>
  13. #endif
  14. #ifdef HAVE_SYS_SELECT_H
  15. /* since so many tests use select(), we can just as well include it here */
  16. #include <sys/select.h>
  17. #endif
  18. #ifdef HAVE_UNISTD_H
  19. /* at least somewhat oldish FreeBSD systems need this for select() */
  20. #include <unistd.h>
  21. #endif
  22. #ifndef FALSE
  23. #define FALSE 0
  24. #endif
  25. #ifndef TRUE
  26. #define TRUE 1
  27. #endif
  28. extern char *arg2; /* set by first.c to the argv[2] or NULL */
  29. int test(char *URL); /* the actual test function provided by each individual
  30. libXXX.c file */