Merge pull request #761 from jonls/jonls/remove-travis-macos-workaround

Fix all CI builds
This commit is contained in:
Jon Lund Steffensen
2020-06-13 18:56:37 -07:00
committed by GitHub
2 changed files with 5 additions and 8 deletions
-8
View File
@@ -34,14 +34,6 @@ before_install: |
brew install gettext
brew link --force gettext
brew install intltool
brew upgrade python
# distuninstallcheck fails on macOS when automake 1.16 or 1.16.1 is used.
# http://gnu-automake.7480.n7.nabble.com/bug-31222-automake-1-16-1-am-pep3147-tweak-bug-td22937.html
# No upstream release yet, use upstream patch.
pushd /usr/local/Cellar/automake/*/share/automake-*
curl "https://git.savannah.gnu.org/cgit/automake.git/patch/?id=a348d830659fffd2cfc42994524783b07e69b4b5" | tail -n 14 | sudo patch -p2
popd
fi
install:
+5
View File
@@ -28,6 +28,7 @@
#include <math.h>
#include <locale.h>
#include <errno.h>
#include <time.h>
/* poll.h is not available on Windows but there is no Windows location provider
using polling. On Windows, we just define some stubs to make things compile.
@@ -210,7 +211,11 @@ get_seconds_since_midnight(double timestamp)
{
time_t t = (time_t)timestamp;
struct tm tm;
#ifdef _WIN32
localtime_s(&tm, &t);
#else
localtime_r(&t, &tm);
#endif
return tm.tm_sec + tm.tm_min * 60 + tm.tm_hour * 3600;
}