cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [autobuild] those FreeBSD warnings

From: Joe Halpin <j.p.h_at_comcast.net>
Date: Tue, 02 Mar 2004 18:25:48 -0600

Here are patches that remove warnings on some of the test libraries in
FreeBSD. I won't run the autobuild tonight with them applied though.

Joe

cvs diff: Diffing tests/libtest
Index: tests/libtest/lib503.c
===================================================================
RCS file: /repository/curl/tests/libtest/lib503.c,v
retrieving revision 1.6
diff -u -r1.6 lib503.c
--- tests/libtest/lib503.c 20 Feb 2004 08:51:43 -0000 1.6
+++ tests/libtest/lib503.c 3 Mar 2004 00:16:07 -0000
@@ -7,6 +7,9 @@
  #include <sys/types.h>
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
  #endif

  /*
Index: tests/libtest/lib504.c
===================================================================
RCS file: /repository/curl/tests/libtest/lib504.c,v
retrieving revision 1.8
diff -u -r1.8 lib504.c
--- tests/libtest/lib504.c 20 Feb 2004 08:51:43 -0000 1.8
+++ tests/libtest/lib504.c 3 Mar 2004 00:16:07 -0000
@@ -7,6 +7,9 @@
  #include <sys/types.h>
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
  #endif

  /*
Index: tests/libtest/lib507.c
===================================================================
RCS file: /repository/curl/tests/libtest/lib507.c,v
retrieving revision 1.3
diff -u -r1.3 lib507.c
--- tests/libtest/lib507.c 20 Feb 2004 08:51:43 -0000 1.3
+++ tests/libtest/lib507.c 3 Mar 2004 00:16:07 -0000
@@ -5,6 +5,9 @@
  #endif
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
  #endif

  int test(char *URL)
Index: tests/libtest/lib509.c
===================================================================
RCS file: /repository/curl/tests/libtest/lib509.c,v
retrieving revision 1.4
diff -u -r1.4 lib509.c
--- tests/libtest/lib509.c 20 Feb 2004 08:51:43 -0000 1.4
+++ tests/libtest/lib509.c 3 Mar 2004 00:16:07 -0000
@@ -9,6 +9,9 @@
  #include <sys/types.h>
  #ifdef HAVE_SYS_SELECT_H
  #include <sys/select.h>
+#ifdef __FreeBSD__
+#include <unistd.h>
+#endif
  #endif

  #include <openssl/opensslv.h>
Received on 2004-03-03