mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-10-27 11:06:53 +01:00
Add support for GNU/kFreeBSD for closefrom() and getentropy()
This commit is contained in:
@@ -136,7 +136,7 @@ closefrom_procfs(int lowfd)
|
||||
int i;
|
||||
|
||||
/* Use /proc/self/fd (or /dev/fd on FreeBSD) if it exists. */
|
||||
# if defined(__FreeBSD__) || defined(__APPLE__)
|
||||
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__)
|
||||
path = "/dev/fd";
|
||||
# else
|
||||
path = "/proc/self/fd";
|
||||
|
||||
Reference in New Issue
Block a user