You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
877 B

  1. From 418b825ed98d84a5c781267df1e84c3819675d09 Mon Sep 17 00:00:00 2001
  2. From: Rosen Penev <rosenp@gmail.com>
  3. Date: Tue, 12 Apr 2022 20:34:55 -0700
  4. Subject: [PATCH] ola: fix compilation with musl 1.2.3
  5. musl 1.2.3 defines NULL as nullptr. Cannot use reinterpret_cast with nullptr.
  6. No idea why this is even here. NULL in C == 0.
  7. ---
  8. ola/AutoStart.cpp | 4 ----
  9. 1 file changed, 4 deletions(-)
  10. --- a/ola/AutoStart.cpp
  11. +++ b/ola/AutoStart.cpp
  12. @@ -110,11 +110,7 @@ TCPSocket *ConnectToServer(unsigned shor
  13. // Try to start the server, we pass --daemon (fork into background) and
  14. // --syslog (log to syslog).
  15. execlp("olad", "olad", "--daemon", "--syslog",
  16. -#ifdef __FreeBSD__
  17. reinterpret_cast<char*>(0));
  18. -#else
  19. - reinterpret_cast<char*>(NULL));
  20. -#endif // __FreeBSD__
  21. OLA_WARN << "Failed to exec: " << strerror(errno);
  22. _exit(1);
  23. }