]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-112806: Remove unused function warnings during mimalloc build on Solaris (#112807)
authorJakub Kulík <Kulikjak@gmail.com>
Mon, 8 Jan 2024 23:49:33 +0000 (00:49 +0100)
committerGitHub <noreply@github.com>
Mon, 8 Jan 2024 23:49:33 +0000 (15:49 -0800)
Objects/mimalloc/prim/unix/prim.c

index 2152017e01fb43e4b7e0de554ff15a1b56febc60..bf324e3f626679a07d197ae3db6c01e5ff0a6486 100644 (file)
@@ -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);