Browse Source

zstd: Fix trace compilation on AIX

Since zstd commit `6cee3c2c` ([trace] Remove default definitions of weak
symbols, 2021-04-26, v1.5.0^2~53^2), the weak symbol trace
implementation does not compile on AIX.  Disable it.
Brad King 4 years ago
parent
commit
ddced0c6b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Utilities/cmzstd/lib/common/zstd_trace.h

+ 1 - 1
Utilities/cmzstd/lib/common/zstd_trace.h

@@ -20,7 +20,7 @@ extern "C" {
 /* weak symbol support */
 #if !defined(ZSTD_HAVE_WEAK_SYMBOLS) && defined(__GNUC__) && \
     !defined(__APPLE__) && !defined(_WIN32) && !defined(__MINGW32__) && \
-    !defined(__CYGWIN__)
+    !defined(__CYGWIN__) && !defined(_AIX)
 #  define ZSTD_HAVE_WEAK_SYMBOLS 1
 #else
 #  define ZSTD_HAVE_WEAK_SYMBOLS 0