Skip to content

Commit

Permalink
- Fix to have empty definition when not supported for weak attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcawijngaards committed Jul 23, 2024
1 parent 8de5ae3 commit 30da725
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -6976,6 +6976,10 @@ printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h

printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h

else

printf "%s\n" "#define ATTR_WEAK /**/" >>confdefs.h

fi


Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ AC_MSG_RESULT($ac_cv_c_weak_attribute)
if test $ac_cv_c_weak_attribute = yes; then
AC_DEFINE(HAVE_ATTR_WEAK, 1, [Whether the C compiler accepts the "weak" attribute])
AC_DEFINE(ATTR_WEAK, [__attribute__((weak))], [apply the weak attribute to a symbol])
else
AC_DEFINE(ATTR_WEAK,[], [apply the weak attribute to a symbol])
fi
])dnl End of CHECK_WEAK_ATTRIBUTE

Expand Down
1 change: 1 addition & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
fallthrough attribute annotations.
- Fix compile when the compiler does not support the noreturn
attribute.
- Fix to have empty definition when not supported for weak attribute.

19 July 2024: Wouter
- Add dnstap-sample-rate that logs only 1/N messages, for high volume
Expand Down

0 comments on commit 30da725

Please sign in to comment.