Skip to content

Commit

Permalink
Debian 10 build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mridoni committed Sep 28, 2023
1 parent 9bbbdbc commit 88c94b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/gixsql-debian-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
./configure --prefix=$WORKSPACE/pkg/${{ env.INSTALL_PREFIX }}
make -j$(nproc) && make install-strip
chmod 755 ./deploy/installers/linux/mkdeb-gixsql.sh && ./deploy/installers/linux/mkdeb-gixsql.sh
ls -lR $WORKSPACE
# - name: Build package
# env:
Expand Down Expand Up @@ -96,8 +95,6 @@ jobs:
./configure --prefix=$WORKSPACE/pkg/${{ env.INSTALL_PREFIX }}
make -j$(nproc) && make install-strip
chmod 755 $WORKSPACE/deploy/installers/linux/mkdeb-gixsql.sh && $WORKSPACE/deploy/installers/linux/mkdeb-gixsql.sh
ls -l
ls -lR $WORKSPACE/pkg
# - name: Build package
# env:
Expand Down Expand Up @@ -143,8 +140,6 @@ jobs:
./configure --prefix=$WORKSPACE/pkg/${{ env.INSTALL_PREFIX }}
make -j$(nproc) && make install-strip
chmod 755 $WORKSPACE/deploy/installers/linux/mkdeb-gixsql.sh && $WORKSPACE/deploy/installers/linux/mkdeb-gixsql.sh
ls -l
ls -lR $WORKSPACE/pkg
# - name: Build package
# env:
Expand Down
7 changes: 6 additions & 1 deletion runtime/libgixsql/gixsql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1623,9 +1623,14 @@ static bool gixsql_initialize()
{
unsigned long rotate_max_size;
int rotate_max_files;
bool rotate_on_open;
bool rotate_on_open; // Not available on spdlog < 1.4.0
get_log_rotation_parameters(&rotate_max_size, &rotate_max_files, &rotate_on_open);

#if SPDLOG_VERSION >= 10400
gixsql_std_sink = std::make_shared<spdlog::sinks::rotating_file_sink_mt>(filename, rotate_max_size, rotate_max_files, rotate_on_open);
#else
gixsql_std_sink = std::make_shared<spdlog::sinks::rotating_file_sink_mt>(filename, rotate_max_size, rotate_max_files);
#endif
}
}

Expand Down

0 comments on commit 88c94b2

Please sign in to comment.