0001-libbrlapi-use-elogind-instead-of-systemd.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. From 6ac0a7ddc37d84a9ed2fd1ecf48db25a47cd8172 Mon Sep 17 00:00:00 2001
  2. From: Dudemanguy <dudemanguy@artixlinux.org>
  3. Date: Thu, 7 Jan 2021 16:35:06 -0600
  4. Subject: [PATCH] libbrlapi: use elogind instead of systemd
  5. Not pretty or elegant but good enough for our purposes.
  6. ---
  7. Programs/brlapi_client.c | 2 +-
  8. configure.ac | 8 ++++----
  9. 2 files changed, 5 insertions(+), 5 deletions(-)
  10. diff --git a/Programs/brlapi_client.c b/Programs/brlapi_client.c
  11. index d803d59d2..48e120bfa 100644
  12. --- a/Programs/brlapi_client.c
  13. +++ b/Programs/brlapi_client.c
  14. @@ -97,7 +97,7 @@
  15. #endif /* MAXIMUM_VIRTUAL_CONSOLE */
  16. #ifdef HAVE_SD_SESSION_GET_VT
  17. -#include <systemd/sd-login.h>
  18. +#include <elogind/sd-login.h>
  19. #endif /* HAVE_SD_SESSION_GET_VT */
  20. #define BRLAPI_NO_DEPRECATED
  21. diff --git a/configure.ac b/configure.ac
  22. index a8d8d237c..e6025fafc 100644
  23. --- a/configure.ac
  24. +++ b/configure.ac
  25. @@ -1263,13 +1263,13 @@ in
  26. ;;
  27. esac
  28. -BRLTTY_HAVE_PACKAGE([systemd], [libsystemd], [
  29. +BRLTTY_HAVE_PACKAGE([elogind], [libelogind], [
  30. brltty_libs_save="${LIBS}"
  31. - LIBS="${LIBS} ${systemd_libs}"
  32. + LIBS="${LIBS} ${elogind_libs}"
  33. AC_CHECK_FUNC([sd_session_get_vt], [
  34. AC_DEFINE([HAVE_SD_SESSION_GET_VT], [1],
  35. - [Define this if the function sd_session_get_vt is available in libsystemd.])
  36. - api_libraries="${api_libraries} ${systemd_libs}"
  37. + [Define this if the function sd_session_get_vt is available in libelogind.])
  38. + api_libraries="${api_libraries} ${elogind_libs}"
  39. ])
  40. LIBS="${brltty_libs_save}"
  41. ])
  42. --
  43. 2.30.0