Gisle Vanem | 20 Jun 2012 18:36
Picon
Favicon
Gravatar

[Patch] src/tool_doswin.c

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
 <at>  <at>  -27,6 +27,10  <at>  <at> 
 #  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

Yang Tse | 20 Jun 2012 20:50
Picon

Re: [Patch] src/tool_doswin.c

Gisle Vanem <gvanem <at> broadpark.no> wrote:

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

The attached patch should be better. Ok for you?

--

-- 
-=[Yang]=-
Attachment (tool_doswin_c.patch): application/octet-stream, 554 bytes
-------------------------------------------------------------------
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
Gisle Vanem | 20 Jun 2012 22:16
Picon
Favicon
Gravatar

Re: [Patch] src/tool_doswin.c

"Yang Tse" <yangsita <at> gmail.com> wrote:

> Gisle Vanem <gvanem <at> broadpark.no> wrote:
> 
>> For djgpp/DOS, src/tool_doswin.c calls the djgpp function _use_lfn() without
>> a prototype. Hence, include <fcntl.h> where the protype is:
>> [...]
> 
> The attached patch should be better. Ok for you?

That's fine too.

--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

Yang Tse | 20 Jun 2012 23:38
Picon

Re: [Patch] src/tool_doswin.c

Gisle Vanem <gvanem <at> broadpark.no> wrote:

> That's fine too.

Fixed in repo.

Thanks,
--

-- 
-=[Yang]=-
-------------------------------------------------------------------
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


Gmane