Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
#include <config.h>
#include <stdio.h>
+#include <sys/types.h>
#ifdef _WIN32
#undef snprintf
}
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 */
#include <stdarg.h>
#include <stddef.h>
+#include <sys/types.h>
/* Windows libc has defective snprintf() and vsnprintf():
*
#undef vsnprintf
#define vsnprintf ovs_vsnprintf
int ovs_vsnprintf(char *, size_t, const char *, va_list);
+
+int fseeko(FILE *stream, off_t offset, int whence);
#endif /* _WIN32 */
#endif /* stdio.h wrapper */