Annotation of pkgsrc/lang/python38/patches/patch-Modules_socketmodule.c, revision 1.1
1.1 ! adam 1: $NetBSD: patch-Modules_socketmodule.c,v 1.1 2018/07/03 03:55:40 adam Exp $
! 2:
! 3: Support NetBSD's socketcan implementation
! 4:
! 5: --- Modules/socketmodule.c.orig 2019-09-06 08:21:57.000000000 +0000
! 6: +++ Modules/socketmodule.c
! 7: @@ -7709,6 +7709,20 @@ PyInit__socket(void)
! 8: PyModule_AddIntConstant(m, "CAN_BCM_CAN_FD_FRAME", CAN_FD_FRAME);
! 9: #endif
! 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>