diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-11-17 17:21:36 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-11-17 17:21:36 +0100 |
commit | 5461efe7b90f83099c42c8b922d6917a6c1757b6 (patch) | |
tree | 5e981dd19242ce6f4b3afc8d1fe24c7eeba141bf | |
parent | ac36ede93c6b9564a837c875fa22b771bd61e005 (diff) | |
download | strongswan-5461efe7b90f83099c42c8b922d6917a6c1757b6.tar.bz2 strongswan-5461efe7b90f83099c42c8b922d6917a6c1757b6.tar.xz |
utils: Use the more low-level __NR_ prefix to refer to the syscall number
The __NR_ constants are also defined in the Android headers.
-rw-r--r-- | src/libstrongswan/utils/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/utils.c b/src/libstrongswan/utils/utils.c index 47d72ee98..4e86165cf 100644 --- a/src/libstrongswan/utils/utils.c +++ b/src/libstrongswan/utils/utils.c @@ -167,7 +167,7 @@ void closefrom(int low_fd) dir_fd = open("/proc/self/fd", O_RDONLY); if (dir_fd != -1) { - while ((len = syscall(SYS_getdents64, dir_fd, buffer, + while ((len = syscall(__NR_getdents64, dir_fd, buffer, sizeof(buffer))) > 0) { for (offset = 0; offset < len; offset += entry->d_reclen) |