--- net-snmp-5.9.4/configure.orig
+++ net-snmp-5.9.4/configure
@@ -31670,7 +31670,7 @@
 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${type}" >&5
 printf "%s\n" "${type}" >&6; }
 
-printf "%s\n" "#define NETSNMP_FD_MASK_TYPE ${type}" >>confdefs.h
+printf "%s\n" "#define NETSNMP_FD_MASK_TYPE long int" >>confdefs.h
 
 
 CFLAGS=$netsnmp_save_CFLAGS