[BACK]Return to patch-storage_tokudb_PerconaFT_portability_toku__portability.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / mariadb104-client / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / mariadb104-client / patches / patch-storage_tokudb_PerconaFT_portability_toku__portability.h (download)

Revision 1.1, Sat May 8 19:47:16 2021 UTC (2 years, 11 months ago) by jdolecek
Branch: MAIN
CVS Tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1, pkgsrc-2023Q4-base, pkgsrc-2023Q4, pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4, pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, HEAD

Add client and server packages for MariaDB 10.4

Copy of the pkgsrc-wip packages by nia@. Consider experimental for now.

$NetBSD: patch-storage_tokudb_PerconaFT_portability_toku__portability.h,v 1.1 2021/05/08 19:47:16 jdolecek Exp $

Use proper attribute syntax on SunOS.

--- storage/tokudb/PerconaFT/portability/toku_portability.h.orig	2015-02-25 15:40:56.000000000 +0000
+++ storage/tokudb/PerconaFT/portability/toku_portability.h
@@ -200,7 +200,7 @@ int      _dup2(int fd, int fd2)
 #undef strdup
 #    if defined(__FreeBSD__)
 char*    strdup(const char *)         __malloc_like __attribute__((__deprecated__));
-#    elif defined(__APPLE__)
+#    elif defined(__APPLE__) || defined(__sun)
 char*    strdup(const char *)         __attribute__((__deprecated__));
 #    else
 char*    strdup(const char *)         __THROW __attribute_malloc__ __nonnull ((1)) __attribute__((__deprecated__));
@@ -216,7 +216,7 @@ ssize_t  pwrite(int, const void *, size_
 extern void *malloc(size_t)                    __malloc_like __attribute__((__deprecated__));
 extern void free(void*)                        __attribute__((__deprecated__));
 extern void *realloc(void*, size_t)            __malloc_like __attribute__((__deprecated__));
-#     elif defined(__APPLE__)
+#     elif defined(__APPLE__) || defined(__sun)
 extern void *malloc(size_t)                    __attribute__((__deprecated__));
 extern void free(void*)                        __attribute__((__deprecated__));
 extern void *realloc(void*, size_t)            __attribute__((__deprecated__));