Skip to content

Commit

Permalink
Fix build error on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementKunz committed Oct 16, 2024
1 parent 5692f49 commit 1c41ced
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/updater/linuxupdater.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
*/

#pragma once

#include "abstractupdater.h"

namespace KDC {

class LinuxUpdater final : public AbstractUpdater {
public:
void onUpdateFound() override;
void startInstaller() override {}
void startInstaller() override { /* No automatic update on Linux for now */ }
};

} // namespace KDC
2 changes: 2 additions & 0 deletions test/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ if(APPLE)
endif()
elseif (WIN32)
list(APPEND testserver_SRCS ${server_srcs_path}/updater/windowsupdater.h ${server_srcs_path}/updater/windowsupdater.cpp)
else ()
list(APPEND testserver_SRCS ${server_srcs_path}/updater/linuxupdater.h ${server_srcs_path}/updater/linuxupdater.cpp)
endif()

if (WIN32)
Expand Down

0 comments on commit 1c41ced

Please sign in to comment.