diff options
author | Jakub KulĂk <Kulikjak@gmail.com> | 2024-01-08 23:49:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-08 23:49:33 (GMT) |
commit | ae968d10326165b1114568ab1ca0a7776ea9c234 (patch) | |
tree | 3674e2def4ceaeaa70ba9e2897ba829e5e40bcd5 /Objects | |
parent | 0b2340263172ad0fdd95aed6266496b7f4db4de3 (diff) | |
download | cpython-ae968d10326165b1114568ab1ca0a7776ea9c234.zip cpython-ae968d10326165b1114568ab1ca0a7776ea9c234.tar.gz cpython-ae968d10326165b1114568ab1ca0a7776ea9c234.tar.bz2 |
gh-112806: Remove unused function warnings during mimalloc build on Solaris (#112807)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/mimalloc/prim/unix/prim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/mimalloc/prim/unix/prim.c b/Objects/mimalloc/prim/unix/prim.c index 2152017..bf324e3 100644 --- a/Objects/mimalloc/prim/unix/prim.c +++ b/Objects/mimalloc/prim/unix/prim.c @@ -50,7 +50,7 @@ terms of the MIT license. A copy of the license can be found in the file #include <sys/sysctl.h> #endif -#if !defined(__HAIKU__) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(_AIX) && !defined(__FreeBSD__) +#if !defined(__HAIKU__) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(_AIX) && !defined(__FreeBSD__) && !defined(__sun) #define MI_HAS_SYSCALL_H #include <sys/syscall.h> #endif @@ -76,7 +76,7 @@ static int mi_prim_access(const char *fpath, int mode) { return syscall(SYS_access,fpath,mode); } -#elif !defined(__APPLE__) && !defined(_AIX) && !defined(__FreeBSD__) // avoid unused warnings +#elif !defined(__APPLE__) && !defined(_AIX) && !defined(__FreeBSD__) && !defined(__sun) // avoid unused warnings static int mi_prim_open(const char* fpath, int open_flags) { return open(fpath,open_flags); |