🔨」 fix: fixed compilation error with logger

This commit is contained in:
2025-04-22 14:51:00 +02:00
parent cc953a791c
commit 7abe04bf44
4 changed files with 10 additions and 4 deletions

View File

@ -6,7 +6,7 @@
# By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/25 16:09:27 by adjoly #+# #+# #
# Updated: 2025/04/22 14:31:00 by adjoly ### ########.fr #
# Updated: 2025/04/22 14:32:50 by adjoly ### ########.fr #
# #
# **************************************************************************** #

View File

@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/03/20 09:28:27 by adjoly #+# #+# */
/* Updated: 2025/04/22 11:50:42 by mmoussou ### ########.fr */
/* Updated: 2025/04/22 14:46:05 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -134,6 +134,6 @@ class Logger {
std::ofstream _file;
};
Logger *_log = NULL;
extern Logger *_log;
}; // namespace webserv

View File

@ -15,6 +15,7 @@
#include <map>
#include <string>
using namespace webserv::config;
std::map<std::string, std::string> *Route::_parseCGI(toml::ANode *table) {

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/03 15:45:07 by mmoussou #+# #+# */
/* Updated: 2025/04/18 09:57:10 by adjoly ### ########.fr */
/* Updated: 2025/04/22 14:50:32 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -20,8 +20,13 @@
#include <requests/default.hpp>
#include <tomlpp.hpp>
#include <unistd.h>
#include <log.hpp>
#include <webserv.hpp>
namespace webserv {
Logger *_log = not_nullptr;
}
int _sig = 0;
void ft_sig(int sig) {