diff --git a/src/switch_core.c b/src/switch_core.c
index dfef15482c..b7b14fded2 100644
--- a/src/switch_core.c
+++ b/src/switch_core.c
@@ -955,10 +955,10 @@ SWITCH_DECLARE(int32_t) set_low_priority(void)
 		fprintf(stderr, "ERROR: Could not set nice level\n");
 		return -1;
 	}
-#endif
 #endif
 
 	return 0;
+#endif
 }
 
 SWITCH_DECLARE(int32_t) set_realtime_priority(void)