--- agent/mibgroup/mibII/kernel_sysctl.c	2023-08-16 04:32:01.000000000 +0800
+++ agent/mibgroup/mibII/kernel_sysctl.c	2024-06-08 03:50:22.000000000 +0800
@@ -20,6 +20,16 @@
 
 #include "kernel_sysctl.h"
 
+#ifndef MLD_LISTENER_QUERY
+#define MLD_LISTENER_QUERY MLD6_LISTENER_QUERY
+#endif
+#ifndef MLD_LISTENER_REPORT
+#define MLD_LISTENER_REPORT MLD6_LISTENER_REPORT
+#endif
+#ifndef MLD_LISTENER_DONE
+#define MLD_LISTENER_DONE MLD6_LISTENER_DONE
+#endif
+
 #if defined(NETSNMP_CAN_USE_SYSCTL)
 
 int
