diff options
Diffstat (limited to 'snmplib/closedir.c')
-rw-r--r-- | snmplib/closedir.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/snmplib/closedir.c b/snmplib/closedir.c new file mode 100644 index 0000000..8c4c50e --- /dev/null +++ b/snmplib/closedir.c @@ -0,0 +1,20 @@ +/* + * closedir() replacement for MSVC. + */ + +#define WIN32IO_IS_STDIO + +#include <net-snmp/net-snmp-config.h> +#include <net-snmp/types.h> +#include <net-snmp/library/system.h> + +/* + * free the memory allocated by opendir + */ +int +closedir(DIR * dirp) +{ + free(dirp->start); + free(dirp); + return 1; +} |