Annotation of pkgsrc/lang/python39/patches/patch-Modules_socketmodule.c, revision 1.1
1.1 ! adam 1: $NetBSD: patch-Modules_socketmodule.c,v 1.1 2019/10/15 16:50:11 adam Exp $
! 2:
! 3: Support NetBSD's socketcan implementation
! 4:
! 5: --- Modules/socketmodule.c.orig 2020-10-05 15:07:58.000000000 +0000
! 6: +++ Modules/socketmodule.c
! 7: @@ -7826,6 +7826,20 @@ PyInit__socket(void)
! 8:
! 9: PyModule_AddIntMacro(m, J1939_FILTER_MAX);
! 10: #endif
! 11: +#ifdef HAVE_NETCAN_CAN_H
! 12: + PyModule_AddIntMacro(m, CAN_EFF_FLAG);
! 13: + PyModule_AddIntMacro(m, CAN_RTR_FLAG);
! 14: + PyModule_AddIntMacro(m, CAN_ERR_FLAG);
! 15: +
! 16: + PyModule_AddIntMacro(m, CAN_SFF_MASK);
! 17: + PyModule_AddIntMacro(m, CAN_EFF_MASK);
! 18: + PyModule_AddIntMacro(m, CAN_ERR_MASK);
! 19: +
! 20: + PyModule_AddIntMacro(m, CAN_RAW_FILTER);
! 21: + /* PyModule_AddIntMacro(m, CAN_RAW_ERR_FILTER); */
! 22: + PyModule_AddIntMacro(m, CAN_RAW_LOOPBACK);
! 23: + PyModule_AddIntMacro(m, CAN_RAW_RECV_OWN_MSGS);
! 24: +#endif
! 25: #ifdef SOL_RDS
! 26: PyModule_AddIntMacro(m, SOL_RDS);
! 27: #endif
CVSweb <webmaster@jp.NetBSD.org>