Skip to content

Commit

Permalink
cares.sh: try workaround for hiding symbols 11 test
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Jan 26, 2025
1 parent 7929c2f commit 51c4b57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cares.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ diff --git a/include/ares.h b/include/ares.h
index 7fe3ec78..dd0bf3e4 100644
--- a/include/ares.h
+++ b/include/ares.h
@@ -116,7 +116,7 @@ extern "C" {
@@ -116,7 +116,8 @@ extern "C" {
# endif
# endif
#else
-# if defined(__GNUC__) && __GNUC__ >= 4
+# if (defined(__GNUC__) && __GNUC__ >= 4) || defined(__clang__)
+#warning FOOBAR_1
# define CARES_EXTERN __attribute__((visibility("default")))
# elif defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 900
# define CARES_EXTERN __attribute__((visibility("default")))
Expand Down

0 comments on commit 51c4b57

Please sign in to comment.