Cleanup: add `#include <stdbool.h>` whenever `bool` type is used
[babeltrace.git] / src / compat / socket.h
index be63d31ebc3edeaa03af27229e8340e78e2c6d55..baf82ad08654e65b16c6a934f77a8c4356dc3622 100644 (file)
@@ -24,6 +24,8 @@
  * SOFTWARE.
  */
 
+#include <stdbool.h>
+
 #ifdef __MINGW32__
 
 #include <winsock2.h>
@@ -274,10 +276,13 @@ const char *bt_socket_errormsg(void)
 
 #else /* __MINGW32__ */
 
-#include <unistd.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
+#include <errno.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
This page took 0.023842 seconds and 4 git commands to generate.