Doug Kaufman's set of patches to make curl build fine on DJGPP again using

configure.
This commit is contained in:
Daniel Stenberg 2005-11-24 10:22:46 +00:00
parent b41765f441
commit 74e5beab9d
6 changed files with 28 additions and 4 deletions

View File

@ -8,6 +8,13 @@
Daniel (24 November 2005)
- Doug Kaufman provided a set of patches to make curl build fine on DJGPP
again using configure.
- Yang Tse provided a whole series of patches to clear up compiler warnings on
MSVC 6.
Daniel (17 November 2005) Daniel (17 November 2005)
- I extended a patch from David Shaw to make libcurl _always_ provide an error - I extended a patch from David Shaw to make libcurl _always_ provide an error
string in the given error buffer to address the flaw mention on 21 sep 2005. string in the given error buffer to address the flaw mention on 21 sep 2005.

View File

@ -19,6 +19,7 @@ This release includes the following changes:
This release includes the following bugfixes: This release includes the following bugfixes:
o builds fine on DJGPP
o CURLOPT_ERRORBUFFER is now always filled in on errors o CURLOPT_ERRORBUFFER is now always filled in on errors
o curl outputs error on bad --limit-rate units o curl outputs error on bad --limit-rate units
o fixed libcurl's use of poll() on cygwin o fixed libcurl's use of poll() on cygwin
@ -52,6 +53,6 @@ advice from friends like these:
Dave Dribin, Bradford Bruce, Temprimus, Ofer, Dima Barsky, Amol Pattekar, Jaz Dave Dribin, Bradford Bruce, Temprimus, Ofer, Dima Barsky, Amol Pattekar, Jaz
Fresh, tommink[at]post.pl, Gisle Vanem, Nis Jorgensen, Vilmos Nebehaj, Fresh, tommink[at]post.pl, Gisle Vanem, Nis Jorgensen, Vilmos Nebehaj,
Dmitry Bartsevich, David Lang, Eugene Kotlyarov, Jan Kunder, Yang Tse, Dmitry Bartsevich, David Lang, Eugene Kotlyarov, Jan Kunder, Yang Tse,
Quagmire, Albert Chin, David Shaw Quagmire, Albert Chin, David Shaw, Doug Kaufman
Thanks! (and sorry if I forgot to mention someone) Thanks! (and sorry if I forgot to mention someone)

View File

@ -1504,6 +1504,13 @@ dnl Checks for library functions.
dnl AC_PROG_GCC_TRADITIONAL dnl AC_PROG_GCC_TRADITIONAL
AC_TYPE_SIGNAL AC_TYPE_SIGNAL
dnl AC_FUNC_VPRINTF dnl AC_FUNC_VPRINTF
case $host in
*msdosdjgpp)
ac_cv_func_pipe=no
skipcheck_pipe=yes
AC_MSG_NOTICE([skip check for pipe on msdosdjgpp])
;;
esac
AC_CHECK_FUNCS( strtoll \ AC_CHECK_FUNCS( strtoll \
socket \ socket \
select \ select \
@ -1541,7 +1548,8 @@ AC_CHECK_FUNCS( strtoll \
dnl if found dnl if found
[], [],
dnl if not found, $ac_func is the name we check for dnl if not found, $ac_func is the name we check for
func="$ac_func" func="$ac_func"
if test "skipcheck_$func" != "yes"; then
AC_MSG_CHECKING([deeper for $func]) AC_MSG_CHECKING([deeper for $func])
AC_TRY_LINK( [], AC_TRY_LINK( [],
[ $func ();], [ $func ();],
@ -1551,7 +1559,7 @@ dnl if not found, $ac_func is the name we check for
AC_DEFINE_UNQUOTED($def, 1, [If you have $func]), AC_DEFINE_UNQUOTED($def, 1, [If you have $func]),
AC_MSG_RESULT(but still no) AC_MSG_RESULT(but still no)
) )
fi
) )
dnl For some reason, the check above doesn't properly detect select() with dnl For some reason, the check above doesn't properly detect select() with
@ -1589,6 +1597,9 @@ AC_CHECK_DECL(basename, ,
#ifdef HAVE_LIBGEN_H #ifdef HAVE_LIBGEN_H
#include <libgen.h> #include <libgen.h>
#endif #endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
) )
AC_MSG_CHECKING([if we are Mac OS X (to disable poll)]) AC_MSG_CHECKING([if we are Mac OS X (to disable poll)])

View File

@ -200,6 +200,7 @@ typedef unsigned char bool;
#define sread(x,y,z) read_s(x,y,z) #define sread(x,y,z) read_s(x,y,z)
#define swrite(x,y,z) write_s(x,y,z) #define swrite(x,y,z) write_s(x,y,z)
#define select(n,r,w,x,t) select_s(n,r,w,x,t) #define select(n,r,w,x,t) select_s(n,r,w,x,t)
#define ioctl(x,y,z) ioctlsocket(x,y,(char *)(z))
#define IOCTL_3_ARGS #define IOCTL_3_ARGS
#include <tcp.h> #include <tcp.h>
#ifdef word #ifdef word
@ -229,7 +230,9 @@ typedef unsigned char bool;
#endif #endif
#define DIR_CHAR "/" #define DIR_CHAR "/"
#ifndef DOT_CHAR
#define DOT_CHAR "." #define DOT_CHAR "."
#endif
#ifdef DJGPP #ifdef DJGPP
#undef DOT_CHAR #undef DOT_CHAR

View File

@ -214,7 +214,7 @@ CURLcode Curl_readrewind(struct connectdata *conn)
if(data->set.ioctl) { if(data->set.ioctl) {
curlioerr err; curlioerr err;
err = data->set.ioctl(data, CURLIOCMD_RESTARTREAD, err = (data->set.ioctl) (data, CURLIOCMD_RESTARTREAD,
data->set.ioctl_client); data->set.ioctl_client);
infof(data, "the ioctl callback returned %d\n", (int)err); infof(data, "the ioctl callback returned %d\n", (int)err);

View File

@ -103,7 +103,9 @@ int fileno( FILE *stream);
#ifdef word #ifdef word
#undef word #undef word
#endif #endif
#ifndef HAVE_LIMITS_H
#define HAVE_LIMITS_H /* we have limits.h */ #define HAVE_LIMITS_H /* we have limits.h */
#endif
#define DIR_CHAR "/" #define DIR_CHAR "/"
#define DOT_CHAR "_" #define DOT_CHAR "_"
#else #else