|
| 1 | +Description: Add loong64 support |
| 2 | +Author: Han Gao <gaohan@iscas.ac.cn> |
| 3 | + |
| 4 | +Last-Update: 2023-03-12 |
| 5 | + |
| 6 | +Index: fakeroot/configure.ac |
| 7 | +=================================================================== |
| 8 | +--- fakeroot.orig/configure.ac |
| 9 | ++++ fakeroot/configure.ac |
| 10 | +@@ -196,7 +196,7 @@ AC_MSG_CHECKING([for type of arg of __xm |
| 11 | + #include <fcntl.h> |
| 12 | + #include <unistd.h> |
| 13 | + ]], [[ |
| 14 | +-#ifndef __GLIBC__ |
| 15 | ++#ifndef __GLIBC__ || (defined(__GLIBC__) && __GLIBC_PREREQ(2,35)) |
| 16 | + #error no extra * |
| 17 | + #endif |
| 18 | + int __xmknod ( int ver, |
| 19 | +@@ -238,7 +238,7 @@ AC_MSG_CHECKING([for type of arg of __xm |
| 20 | + #include <fcntl.h> |
| 21 | + #include <unistd.h> |
| 22 | + ]], [[ |
| 23 | +-#ifndef __GLIBC__ |
| 24 | ++#ifndef __GLIBC__ || (defined(__GLIBC__) && __GLIBC_PREREQ(2,35)) |
| 25 | + #error no extra * |
| 26 | + #endif |
| 27 | + int __xmknodat ( int ver, |
| 28 | +Index: fakeroot/libfakeroot.c |
| 29 | +=================================================================== |
| 30 | +--- fakeroot.orig/libfakeroot.c |
| 31 | ++++ fakeroot/libfakeroot.c |
| 32 | +@@ -1461,7 +1461,7 @@ int renameat2(int olddir_fd, const char |
| 33 | + |
| 34 | + |
| 35 | + #if defined(__GLIBC__) |
| 36 | +-#if __GLIBC_PREREQ(2,33) |
| 37 | ++#if (__GLIBC_PREREQ(2,33) && !defined(__loongarch64)) |
| 38 | + /* Glibc 2.33 exports symbols for these functions in the shared lib */ |
| 39 | + |
| 40 | + #ifndef NO_WRAP_MKNOD_SYMBOL |
0 commit comments