GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832)

This commit is contained in:
Chris Eibl 2025-07-28 18:52:07 +02:00 committed by GitHub
parent cbe6ebe15b
commit 59e2330cf3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,6 +18,10 @@
*/
#ifdef AF_BTH
# include <ws2bth.h>
# ifdef __clang__
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wpragma-pack"
# endif
# include <pshpack1.h>
/*
@ -51,7 +55,10 @@ struct SOCKADDR_BTH_REDEF {
};
# include <poppack.h>
#endif
# ifdef __clang__
# pragma clang diagnostic pop
# endif
#endif /* AF_BTH */
/* Windows 'supports' CMSG_LEN, but does not follow the POSIX standard
* interface at all, so there is no point including the code that