summaryrefslogtreecommitdiffstats
path: root/runtime/unlimited_select.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/unlimited_select.h')
-rw-r--r--runtime/unlimited_select.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/unlimited_select.h b/runtime/unlimited_select.h
index 61a2baca..32dadc03 100644
--- a/runtime/unlimited_select.h
+++ b/runtime/unlimited_select.h
@@ -34,10 +34,12 @@
# define FD_ZERO(set) memset((set), 0, glbl.GetFdSetSize());
#endif
-void freeFdSet(fd_set *p) {
#ifdef USE_UNLIMITED_SELECT
+void freeFdSet(fd_set *p) {
free(p);
-#endif
}
+#else
+# define freeFdSet(x)
+#endif
#endif /* #ifndef UNLIMITED_SELECT_H_INCLUDED */