diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2012-06-20 23:40:42 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-20 23:40:42 +0200 |
commit | 08e0ad7b3974811127f7d61c016fee540f91d343 (patch) | |
tree | fd38c0c8d43f50b746104a616353bbe006be7520 /src | |
parent | 2ebb87f047ce2a52d876b51b30f2bd8e5043ee58 (diff) |
tool_doswin.c: fix djgpp function _use_lfn() used without a prototype
http://curl.haxx.se/mail/archive-2012-06/0028.html
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_doswin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tool_doswin.c b/src/tool_doswin.c index c1ba48ea9..4fae91d32 100644 --- a/src/tool_doswin.c +++ b/src/tool_doswin.c @@ -81,6 +81,8 @@ __pragma(warning(pop)) # define _use_lfn(f) ALWAYS_TRUE /* long file names always available */ #elif !defined(__DJGPP__) || (__DJGPP__ < 2) /* DJGPP 2.0 has _use_lfn() */ # define _use_lfn(f) ALWAYS_FALSE /* long file names never available */ +#elif defined(__DJGPP__) +# include <fcntl.h> /* _use_lfn(f) prototype */ #endif static const char *msdosify (const char *file_name); |