projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: add `#include <stdbool.h>` whenever `bool` type is used
[babeltrace.git]
/
src
/
compat
/
socket.h
diff --git
a/src/compat/socket.h
b/src/compat/socket.h
index be63d31ebc3edeaa03af27229e8340e78e2c6d55..baf82ad08654e65b16c6a934f77a8c4356dc3622 100644
(file)
--- a/
src/compat/socket.h
+++ b/
src/compat/socket.h
@@
-24,6
+24,8
@@
* SOFTWARE.
*/
* SOFTWARE.
*/
+#include <stdbool.h>
+
#ifdef __MINGW32__
#include <winsock2.h>
#ifdef __MINGW32__
#include <winsock2.h>
@@
-274,10
+276,13
@@
const char *bt_socket_errormsg(void)
#else /* __MINGW32__ */
#else /* __MINGW32__ */
-#include <unistd.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
+#include <errno.h>
#include <netdb.h>
#include <netdb.h>
+#include <netinet/in.h>
+#include <sys/socket.h>
+#include <unistd.h>
+
+#include <glib.h>
#define BT_INVALID_SOCKET -1
#define BT_SOCKET_ERROR -1
#define BT_INVALID_SOCKET -1
#define BT_SOCKET_ERROR -1
This page took
0.023211 seconds
and
4
git commands to generate.