git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofproto-dpif: Use sequence number to wake up main thread for
[sliver-openvswitch.git]
/
lib
/
stdio.c
diff --git
a/lib/stdio.c
b/lib/stdio.c
index
49a5078
..
5c5c924
100644
(file)
--- a/
lib/stdio.c
+++ b/
lib/stdio.c
@@
-17,6
+17,7
@@
#include <config.h>
#include <stdio.h>
#include <config.h>
#include <stdio.h>
+#include <sys/types.h>
#ifdef _WIN32
#undef snprintf
#ifdef _WIN32
#undef snprintf
@@
-45,4
+46,15
@@
ovs_vsnprintf(char *s, size_t n, const char *format, va_list args)
}
return needed;
}
}
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 */
#endif /* _WIN32 */