mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix to have empty definition when not supported for weak attribute.
This commit is contained in:
parent
8de5ae3552
commit
30da725e67
3 changed files with 7 additions and 0 deletions
4
configure
vendored
4
configure
vendored
|
|
@ -6976,6 +6976,10 @@ printf "%s\n" "#define HAVE_ATTR_WEAK 1" >>confdefs.h
|
||||||
|
|
||||||
printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
|
printf "%s\n" "#define ATTR_WEAK __attribute__((weak))" >>confdefs.h
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
printf "%s\n" "#define ATTR_WEAK /**/" >>confdefs.h
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -339,6 +339,8 @@ AC_MSG_RESULT($ac_cv_c_weak_attribute)
|
||||||
if test $ac_cv_c_weak_attribute = yes; then
|
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(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])
|
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
|
fi
|
||||||
])dnl End of CHECK_WEAK_ATTRIBUTE
|
])dnl End of CHECK_WEAK_ATTRIBUTE
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
fallthrough attribute annotations.
|
fallthrough attribute annotations.
|
||||||
- Fix compile when the compiler does not support the noreturn
|
- Fix compile when the compiler does not support the noreturn
|
||||||
attribute.
|
attribute.
|
||||||
|
- Fix to have empty definition when not supported for weak attribute.
|
||||||
|
|
||||||
19 July 2024: Wouter
|
19 July 2024: Wouter
|
||||||
- Add dnstap-sample-rate that logs only 1/N messages, for high volume
|
- Add dnstap-sample-rate that logs only 1/N messages, for high volume
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue