From f2c05b9ecf4493d2b25c25fcd75aed0ec60cc473 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 14 Aug 2012 22:34:04 +0000 Subject: Remove __ASSUME_CLONE_THREAD_FLAGS. --- ports/sysdeps/unix/sysv/linux/ia64/kernel-features.h | 4 ---- ports/sysdeps/unix/sysv/linux/ia64/system.c | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'ports/sysdeps/unix/sysv/linux/ia64') diff --git a/ports/sysdeps/unix/sysv/linux/ia64/kernel-features.h b/ports/sysdeps/unix/sysv/linux/ia64/kernel-features.h index 061a86df5a..bd3e37777d 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/kernel-features.h +++ b/ports/sysdeps/unix/sysv/linux/ia64/kernel-features.h @@ -20,10 +20,6 @@ #ifndef _KERNEL_FEATURES_H #define _KERNEL_FEATURES_H 1 -/* The late 2.5 kernels saw a lot of new CLONE_* flags. Summarize - their availability with one define. */ -#define __ASSUME_CLONE_THREAD_FLAGS 1 - /* The utimes syscall has been available for some architectures forever. */ #define __ASSUME_UTIMES 1 diff --git a/ports/sysdeps/unix/sysv/linux/ia64/system.c b/ports/sysdeps/unix/sysv/linux/ia64/system.c index f02a99e9eb..6970a1f899 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/system.c +++ b/ports/sysdeps/unix/sysv/linux/ia64/system.c @@ -25,10 +25,8 @@ return. It might still be in the kernel when the cancellation request comes. Therefore we have to use the clone() calls ability to have the kernel write the PID into the user-level variable. */ -#ifdef __ASSUME_CLONE_THREAD_FLAGS -# define FORK() \ +#define FORK() \ INLINE_SYSCALL (clone2, 6, CLONE_PARENT_SETTID | SIGCHLD, NULL, 0, \ &pid, NULL, NULL) -#endif #include -- cgit 1.4.1