Skip to content

Commit

Permalink
Fix ABSL_HAVE_ALARM check on mingw (#341)
Browse files Browse the repository at this point in the history
* Fix ABSL_HAVE_ALARM check on mingw
  • Loading branch information
jtsylve authored and suertreus committed Oct 9, 2019
1 parent 25597bd commit abea769
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions absl/base/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@
#define ABSL_HAVE_ALARM 1
#elif defined(_MSC_VER)
// feature tests for Microsoft's library
#elif defined(__MINGW32__)
// mingw32 doesn't provide alarm(2):
// https://osdn.net/projects/mingw/scm/git/mingw-org-wsl/blobs/5.2-trunk/mingwrt/include/unistd.h
// mingw-w64 provides a no-op implementation:
// https://sourceforge.net/p/mingw-w64/mingw-w64/ci/master/tree/mingw-w64-crt/misc/alarm.c
#elif defined(__EMSCRIPTEN__)
// emscripten doesn't support signals
#elif defined(__Fuchsia__)
Expand Down

0 comments on commit abea769

Please sign in to comment.