cURL / Mailing Lists / curl-users / Single Mail

curl-users

[Patch] src/tool_doswin.c

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Wed, 20 Jun 2012 18:36:42 +0200

For djgpp/DOS, src/tool_doswin.c calls the djgpp function _use_lfn()
without a prototype. Hence, include <fcntl.h> where the protype is:

--- Git-latest/src/tool_doswin.c Wed Jun 13 22:40:11 2012
+++ src/tool_doswin.c Wed Jun 20 13:39:10 2012
@@ -27,6 +27,10 @@
 # include <libgen.h>
 #endif

+#ifdef HAVE_FCNTL_H
+# include <fcntl.h>
+#endif
+
 #ifdef WIN32
 # include "tool_cfgable.h"
 # include "tool_libinfo.h"

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-06-20