summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.h
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-12-23 15:44:51 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-12-23 15:44:51 (GMT)
commit8b759655d0acab20d6a216400ea0c45bef8d5ab6 (patch)
treee593219025accafa6ea1c91cd43b9cc002e97491 /Modules/socketmodule.h
parent5b62942074f2f6ae57c0e1bd8e4993dff4f5997f (diff)
downloadcpython-8b759655d0acab20d6a216400ea0c45bef8d5ab6.zip
cpython-8b759655d0acab20d6a216400ea0c45bef8d5ab6.tar.gz
cpython-8b759655d0acab20d6a216400ea0c45bef8d5ab6.tar.bz2
Issue #8623: Fix some strict-aliasing warnings. Patch by David Watson.
Diffstat (limited to 'Modules/socketmodule.h')
-rw-r--r--Modules/socketmodule.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 13e33d5..59d4cb1 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -115,6 +115,7 @@ typedef int SOCKET_T;
/* Socket address */
typedef union sock_addr {
struct sockaddr_in in;
+ struct sockaddr sa;
#ifdef AF_UNIX
struct sockaddr_un un;
#endif