diff options
Diffstat (limited to 'third_party/snappy/mac/snappy-stubs-public.h')
-rw-r--r-- | third_party/snappy/mac/snappy-stubs-public.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/third_party/snappy/mac/snappy-stubs-public.h b/third_party/snappy/mac/snappy-stubs-public.h index 9ee4ca52b3..1095511069 100644 --- a/third_party/snappy/mac/snappy-stubs-public.h +++ b/third_party/snappy/mac/snappy-stubs-public.h @@ -44,9 +44,13 @@ #include <stddef.h> #endif +#if 1 +#include <sys/uio.h> +#endif + #define SNAPPY_MAJOR 1 -#define SNAPPY_MINOR 0 -#define SNAPPY_PATCHLEVEL 5 +#define SNAPPY_MINOR 1 +#define SNAPPY_PATCHLEVEL 0 #define SNAPPY_VERSION \ ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL) @@ -80,6 +84,15 @@ typedef std::string string; TypeName(const TypeName&); \ void operator=(const TypeName&) +#if 0 +// Windows does not have an iovec type, yet the concept is universally useful. +// It is simple to define it ourselves, so we put it inside our own namespace. +struct iovec { + void* iov_base; + size_t iov_len; +}; +#endif + } // namespace snappy #endif // UTIL_SNAPPY_OPENSOURCE_SNAPPY_STUBS_PUBLIC_H_ |