diff options
author | Stephan Hartmann <stha09@googlemail.com> | 2020-07-11 19:22:31 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2020-07-11 20:34:07 +0300 |
commit | aed371a9e678b50b7a0998d1c7a91cae9c48aa32 (patch) | |
tree | fcb5e567bfcbe1b601620494b97d272fc3fa5f2e /dev-libs/log4cpp/files | |
parent | dev-ruby/rspec-stubbed_env: ppc keyworded (bug #709774) (diff) | |
download | gentoo-aed371a9e678b50b7a0998d1c7a91cae9c48aa32.tar.gz gentoo-aed371a9e678b50b7a0998d1c7a91cae9c48aa32.tar.bz2 gentoo-aed371a9e678b50b7a0998d1c7a91cae9c48aa32.zip |
dev-libs/log4cpp: fix test with glibc-2.31
Closes: https://bugs.gentoo.org/723022
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
Closes: https://github.com/gentoo/gentoo/pull/16667
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-libs/log4cpp/files')
-rw-r--r-- | dev-libs/log4cpp/files/log4cpp-1.1-glibc-2.31.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-libs/log4cpp/files/log4cpp-1.1-glibc-2.31.patch b/dev-libs/log4cpp/files/log4cpp-1.1-glibc-2.31.patch new file mode 100644 index 000000000000..5b927dfe20fa --- /dev/null +++ b/dev-libs/log4cpp/files/log4cpp-1.1-glibc-2.31.patch @@ -0,0 +1,22 @@ +diff --git a/tests/testDailyRollingFileAppender.cpp b/tests/testDailyRollingFileAppender.cpp +index 9958f41..158c08b 100644 +--- a/tests/testDailyRollingFileAppender.cpp ++++ b/tests/testDailyRollingFileAppender.cpp +@@ -22,6 +22,7 @@ + + #ifndef WIN32 // only available on Win32 + #include <dirent.h> ++#include <sys/time.h> + #else + #include <direct.h> + #endif +@@ -232,7 +233,8 @@ namespace OnlyManualTesting { + + now += seconds; + +- if (stime(&now) == -1) { ++ struct timeval tv = {.tv_sec = now, .tv_usec = 0}; ++ if (settimeofday(&tv, NULL) < 0) { + std::cerr << "Can not set date. Need admin privileges?" << std::endl; + return -1; + } |