aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'erts/emulator/beam/io.c')
-rw-r--r--erts/emulator/beam/io.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/erts/emulator/beam/io.c b/erts/emulator/beam/io.c
index e8f04ef68a..53a25f5136 100644
--- a/erts/emulator/beam/io.c
+++ b/erts/emulator/beam/io.c
@@ -1396,12 +1396,8 @@ void init_io(void)
erts_smp_mtx_unlock(&erts_driver_list_lock);
}
-#ifdef ERTS_ENABLE_LOCK_COUNT
-void enable_io_lock_count (int enable);
-
-void
-enable_io_lock_count (int enable)
-{
+#if defined(ERTS_ENABLE_LOCK_COUNT) && defined(ERTS_SMP)
+void erts_lcnt_enable_io_lock_count(int enable) {
int i;
for (i = 0; i < erts_max_ports; i++) {