0001-lib-libopenswan-constants.c-workaround-missing-ns_t_.patch 999 B

1234567891011121314151617181920212223242526272829
  1. From 66f8abe037970dda50fbc460edb2a2fa9f391d8a Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Wed, 3 Aug 2022 19:14:25 +0200
  4. Subject: [PATCH] lib/libopenswan/constants.c: workaround missing ns_t_tkey
  5. definition in uClibc < 1.0.41
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  7. ---
  8. lib/libopenswan/constants.c | 4 +++-
  9. 1 file changed, 3 insertions(+), 1 deletion(-)
  10. diff --git a/lib/libopenswan/constants.c b/lib/libopenswan/constants.c
  11. index 90c973b5f..04e68da42 100644
  12. --- a/lib/libopenswan/constants.c
  13. +++ b/lib/libopenswan/constants.c
  14. @@ -1411,7 +1411,9 @@ static const char *const rr_qtype_name[] = {
  15. NULL
  16. };
  17. -enum_names rr_qtype_names = { ns_t_tkey, ns_t_any
  18. +/* ns_t_tkey is 249, but its definition is missing from uClibc <
  19. + * 1.0.41, so let's hardcode it */
  20. +enum_names rr_qtype_names = { 249 /* ns_t_tkey */, ns_t_any
  21. , rr_qtype_name, &rr_type_names };
  22. static const char *const rr_class_name[] = {
  23. --
  24. 2.37.1