diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..5077215 --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2018 Nicolas Dextraze and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..864ef1c --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# EventStore C Client + +### The project + +This project is in it's infancy. I need help with many things, from C best practices to documentation passing by portability. +If you can/want to help you can contact me via github. + +Right now the code supports both 64bit linux and Windows (using msys2/mingw). + +### License + +See LICENSE file \ No newline at end of file diff --git a/src/utils/socket.h b/src/utils/socket.h index 7957c7c..83d1293 100644 --- a/src/utils/socket.h +++ b/src/utils/socket.h @@ -5,6 +5,11 @@ #ifndef ESC_SOCKET_H #define ESC_SOCKET_H +#include +#ifdef __linux__ +#include //ssize_t +#endif + struct st_socket; typedef struct st_socket socket_t;