Skip to content

Commit

Permalink
fixes include of gnu/libc-version.h
Browse files Browse the repository at this point in the history
closes #386
  • Loading branch information
klemens-morgenstern committed Jul 19, 2024
1 parent 8b3e902 commit 67a2f97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/posix/close_handles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ int fdwalk(int (*func)(void *, int), void *cd);

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,11,0) // kernel has close_range

#include <gnu/libc-version.h>
// version is included by stdlib.h #include <gnu/libc-version.h>
#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 34) // glibc is compiled with close_range support
// https://man7.org/linux/man-pages/man2/close_range.2.html

Expand Down

0 comments on commit 67a2f97

Please sign in to comment.