Changelog
+Daniel S (1 April 2007)
+- Matt Kraai provided a patch that makes curl build on QNX 6 fine again.
+
Daniel S (31 March 2007)
- Fixed several minor issues detected by the coverity.com scanner.
Rob Crittenden, Robert A. Monat, Dan Fandrich, Duncan Mac-Vicar Prett,
Michal Marek, Robson Braga Araujo, Ian Turner, Linus Nielsen Feltzing,
Ravi Pratap, Adam D. Moss, Jose Kahan, Hang Kin Lau, Justin Fletcher,
- Robert Iakobashvili, Bryan Henderson, Eygene Ryabinkin, Daniel Johnson
+ Robert Iakobashvili, Bryan Henderson, Eygene Ryabinkin, Daniel Johnson,
+ Matt Kraai
Thanks! (and sorry if I forgot to mention someone)
getprotobyname \
getrlimit \
setrlimit \
- fork,
+ fork \
+ setmode,
dnl if found
[],
dnl if not found, $ac_func is the name we check for
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
#include <string.h>
#include <ctype.h>
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
#include "strequal.h"
#if defined(HAVE_STRCASECMP) && defined(__STRICT_ANSI__)
/* FUNCTIONS */
/* ---------------------------------------------------------------- */
+/* Define if you have the setmode function. */
+#define HAVE_SETMODE 1
+
/* Define if you have the ftruncate function. */
#define HAVE_FTRUNCATE 1
if(curlx_strequal("-", nextarg)) {
file = stdin;
-#ifdef O_BINARY
+#if defined(O_BINARY) && defined(HAVE_SETMODE)
if(subletter == 'b') /* forced binary */
setmode(fileno(stdin), O_BINARY);
#endif
}
else if(uploadfile && curlx_strequal(uploadfile, "-")) {
-#ifdef O_BINARY
+#if defined(O_BINARY) && defined(HAVE_SETMODE)
setmode(fileno(stdin), O_BINARY);
#endif
infd = stdin;
if(!config->errors)
config->errors = stderr;
-#ifdef O_BINARY
+#if defined(O_BINARY) && defined(HAVE_SETMODE)
if(!outfile && !(config->conf & CONF_GETTEXT)) {
/* We get the output to stdout and we have not got the ASCII/text flag,
then set stdout to be binary */