From 62eb66486dda8799e144a871a0e80a47c113e3a3 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 13 Oct 2020 23:27:47 +0700 Subject: [PATCH] Added copyright. --- src/base/base.cmake | 4 +--- src/base/io/Async.cpp | 20 ++++++++++++++++++++ src/base/io/Async.h | 27 ++++++++++++++++++++++++++- 3 files changed, 47 insertions(+), 4 deletions(-) diff --git a/src/base/base.cmake b/src/base/base.cmake index 0574d617..96958b89 100644 --- a/src/base/base.cmake +++ b/src/base/base.cmake @@ -127,12 +127,10 @@ elseif (APPLE) ) else() set(SOURCES_OS + src/base/io/Async.cpp src/base/io/json/Json_unix.cpp src/base/kernel/Platform_unix.cpp ) - list(APPEND SOURCES_BASE - src/base/io/Async.cpp - ) endif() diff --git a/src/base/io/Async.cpp b/src/base/io/Async.cpp index 9ac8b02a..f2bc5ff2 100644 --- a/src/base/io/Async.cpp +++ b/src/base/io/Async.cpp @@ -1,3 +1,23 @@ +/* XMRig + * Copyright (c) 2015-2020 libuv project contributors. + * Copyright (c) 2020 cohcho + * Copyright (c) 2018-2020 SChernykh + * Copyright (c) 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "base/io/Async.h" diff --git a/src/base/io/Async.h b/src/base/io/Async.h index 4af45f3f..7d199336 100644 --- a/src/base/io/Async.h +++ b/src/base/io/Async.h @@ -1,4 +1,26 @@ -#pragma once +/* XMRig + * Copyright (c) 2015-2020 libuv project contributors. + * Copyright (c) 2020 cohcho + * Copyright (c) 2018-2020 SChernykh + * Copyright (c) 2016-2020 XMRig , + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef XMRIG_ASYNC_H +#define XMRIG_ASYNC_H + #include @@ -25,3 +47,6 @@ extern int uv_async_send(uv_async_t *async); } // namespace xmrig #endif + + +#endif /* XMRIG_ASYNC_H */