etcd-cpp-apiv3/src
JonLiu1993 e5dc903a5d
Fix error LNK1107 and undeclared identifier 'IPPROTO_TCP' (#244)
When I [Update](https://github.com/microsoft/vcpkg/pull/32747)
etcd-cpp-apiv3 version from 0.14.2 to 0.15.2, I get two build error:
````
fatal error LNK1107: invalid or corrupt file: cannot read at 0x330
````
````
error: use of undeclared identifier 'IPPROTO_TCP'
````

The first error was because the target `etcd-cpp-api-core-objects`
linked the wrong `libprotobufd.dll` file instead of the .lib file, I
used the usage provided by vcpkg to link the correct .lib file to fix
this error.

Another error was because `IPPROTO_TCP` was missing declaration
`"<netinet/in.h>"`, I added it to fix this error.

---------

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
Co-authored-by: Tao He <linzhu.ht@alibaba-inc.com>
2023-07-27 11:27:19 +08:00
..
v3 Fixes txn delete response to keep backwards compatibility (#239) 2023-07-17 10:43:19 +08:00
CMakeLists.txt Fix error LNK1107 and undeclared identifier 'IPPROTO_TCP' (#244) 2023-07-27 11:27:19 +08:00
Client.cpp Refactor the implementation of etcd transactions. (#236) 2023-07-15 17:07:34 +08:00
KeepAlive.cpp KeepAlive: auto grant a new lease if 0 is given as lease id (#242) 2023-07-20 14:21:27 +08:00
Response.cpp Refactor the implementation of etcd transactions. (#236) 2023-07-15 17:07:34 +08:00
SyncClient.cpp Fix error LNK1107 and undeclared identifier 'IPPROTO_TCP' (#244) 2023-07-27 11:27:19 +08:00
Value.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00
Watcher.cpp Format source code using clformat (#233) 2023-07-01 20:49:16 +08:00