diff options
| author | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-12-01 03:19:41 +0000 |
| commit | 2e80774d0b20d167bc0a9e2b63dafbfb171c0d22 (patch) | |
| tree | 25f0138e1af8902b92dacc8cce09b267447c17db /lang/python39/files/patch-Modules__socketmodule.c | |
| parent | f85f2b2d6e5b7ed869376eb4b180c3a74a5c5da9 (diff) | |
| parent | 1a30da80670973368b399f2b01fe9c04b91a1273 (diff) | |
Merge remote-tracking branch 'freebsd/main' into lf/mainlf/main
Diffstat (limited to 'lang/python39/files/patch-Modules__socketmodule.c')
| -rw-r--r-- | lang/python39/files/patch-Modules__socketmodule.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lang/python39/files/patch-Modules__socketmodule.c b/lang/python39/files/patch-Modules__socketmodule.c deleted file mode 100644 index 93ef3b785ab9..000000000000 --- a/lang/python39/files/patch-Modules__socketmodule.c +++ /dev/null @@ -1,29 +0,0 @@ ---- Modules/socketmodule.c -+++ Modules/socketmodule.c -@@ -1850,6 +1850,11 @@ getsockaddrarg(PySocketSockObject *s, PyObject *args, - /* RDS sockets use sockaddr_in: fall-through */ - #endif /* AF_RDS */ - -+#ifdef AF_DIVERT -+ case AF_DIVERT: -+ /* FreeBSD divert(4) sockets use sockaddr_in: fall-through */ -+#endif /* AF_DIVERT */ -+ - case AF_INET: - { - struct maybe_idna host = {NULL, NULL}; -@@ -7628,6 +7633,14 @@ PyInit__socket(void) - PyModule_AddIntMacro(m, AF_SYSTEM); - #endif - -+/* FreeBSD divert(4) */ -+#ifdef PF_DIVERT -+ PyModule_AddIntMacro(m, PF_DIVERT); -+#endif -+#ifdef AF_DIVERT -+ PyModule_AddIntMacro(m, AF_DIVERT); -+#endif -+ - #ifdef AF_PACKET - PyModule_AddIntMacro(m, AF_PACKET); - #endif |
