[Spice-devel] [PATCH spice-server 32/33] Use structure for socket_t type instead of just a typedef
Frediano Ziglio
fziglio at redhat.com
Fri Dec 21 12:03:20 UTC 2018
Allows the compiler to catch errors mixing int and sockets.
Make easier to keep Windows port working.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/sys-socket.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/sys-socket.h b/server/sys-socket.h
index 9dca563b..361845e2 100644
--- a/server/sys-socket.h
+++ b/server/sys-socket.h
@@ -26,7 +26,7 @@
#ifndef _WIN32
# include <sys/socket.h>
-#if 0
+#if ENABLE_EXTRA_CHECKS
typedef struct {
int fd;
} socket_t;
--
2.17.2
More information about the Spice-devel
mailing list