No symbols from <stdio.h>, <time.h> nor <inttypes.h> are used in <net-snmp/types.h>. Hence stop including these files in <net-snmp/types.h>. --- include/net-snmp/types.h | 19 ------------------- include/net-snmp/varbind_api.h | 1 + 2 files changed, 1 insertion(+), 19 deletions(-)
diff --git a/include/net-snmp/types.h b/include/net-snmp/types.h index 755740327908..181112577ba6 100644 --- a/include/net-snmp/types.h +++ b/include/net-snmp/types.h @@ -16,29 +16,10 @@ * Definitions of data structures, used within the library API. */ -#include <stdio.h> - #ifndef NET_SNMP_CONFIG_H #error "Please include <net-snmp/net-snmp-config.h> before this file" #endif - /* - * For 'timeval' - */ -#if TIME_WITH_SYS_TIME -# include <sys/time.h> -# include <time.h> -#else -# if HAVE_SYS_TIME_H -# include <sys/time.h> -# else -# include <time.h> -# endif -#endif - -#ifdef HAVE_INTTYPES_H -#include <inttypes.h> -#endif #include <sys/types.h> #if 1 /* diff --git a/include/net-snmp/varbind_api.h b/include/net-snmp/varbind_api.h index 7f4850312be5..db78e2a754ea 100644 --- a/include/net-snmp/varbind_api.h +++ b/include/net-snmp/varbind_api.h @@ -6,6 +6,7 @@ */ #include <net-snmp/types.h> +#include <stdio.h> #ifdef __cplusplus extern "C" { -- 2.16.3 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders