File rubygem-passenger-aarch64-support.patch of Package rubygem-passenger

--- ext/common/Utils.cpp
+++ ext/common/Utils.cpp
@@ -967,7 +967,11 @@
 pid_t
 asyncFork() {
 	#if defined(__linux__)
+            #if defined(SYS_fork)
 		return (pid_t) syscall(SYS_fork);
+            #else
+                return syscall(SYS_clone, SIGCHLD, 0, 0, 0, 0);
+            #endif
 	#else
 		return fork();
 	#endif
openSUSE Build Service is sponsored by