diff --git a/CMakeLists.txt b/CMakeLists.txt index 94df410ac..ea2c2d6e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,6 +110,8 @@ elseif (APPLE) ) file(GLOB AWS_IO_OS_SRC + "source/bsd/*.c" + "source/posix/*.c" "source/darwin/*.c" ) @@ -128,11 +130,6 @@ elseif (APPLE) # Enable KQUEUE on MacOS if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - file(GLOB AWS_IO_KUEUE_SRC - "source/bsd/*.c" - "source/posix/*.c" - ) - list(APPEND AWS_IO_OS_SRC ${AWS_IO_KUEUE_SRC}) list(APPEND EVENT_LOOP_DEFINES "KQUEUE") endif() diff --git a/source/bsd/kqueue_event_loop.c b/source/bsd/kqueue_event_loop.c index fa962cbca..0cd2a04bc 100644 --- a/source/bsd/kqueue_event_loop.c +++ b/source/bsd/kqueue_event_loop.c @@ -292,7 +292,7 @@ struct aws_event_loop *aws_event_loop_new_kqueue_with_options( } return NULL; } -#endif //AWS_ENABLE_KQUEUE +#endif // AWS_ENABLE_KQUEUE static void s_destroy(struct aws_event_loop *event_loop) { AWS_LOGF_INFO(AWS_LS_IO_EVENT_LOOP, "id=%p: destroying event_loop", (void *)event_loop);