aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-11-17 17:21:36 +0100
committerTobias Brunner <tobias@strongswan.org>2015-11-17 17:21:36 +0100
commit5461efe7b90f83099c42c8b922d6917a6c1757b6 (patch)
tree5e981dd19242ce6f4b3afc8d1fe24c7eeba141bf
parentac36ede93c6b9564a837c875fa22b771bd61e005 (diff)
downloadstrongswan-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.c2
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)