2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-19 14:37:21 +00:00

stdio: fseeko for Windows.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
Gurucharan Shetty
2014-03-11 10:07:18 -07:00
parent 7470e8e62a
commit f69aa2561d
2 changed files with 15 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
#include <config.h>
#include <stdio.h>
#include <sys/types.h>
#ifdef _WIN32
#undef snprintf
@@ -45,4 +46,15 @@ ovs_vsnprintf(char *s, size_t n, const char *format, va_list args)
}
return needed;
}
int
fseeko(FILE *stream, off_t offset, int whence)
{
int error;
error = _fseeki64(stream, offset, whence);
if (error) {
return -1;
}
return error;
}
#endif /* _WIN32 */