commit | b9b925341f9e90f5e7aa0cf23f036c29c7e454eb | [log] [tgz] |
---|---|---|
author | Milad Fa <46688537+miladfarca@users.noreply.github.com> | Tue Oct 05 15:21:55 2021 -0400 |
committer | GitHub <noreply@github.com> | Tue Oct 05 15:21:55 2021 -0400 |
tree | 951647fd0b356234bcf9a2a94a5943be7f316856 | |
parent | 4167eab063636a1fadcd571e0a762ff67d742c25 [diff] |
Fix typedef of sig_t on AIX (#1030)
diff --git a/absl/time/clock_test.cc b/absl/time/clock_test.cc index e6f627b..bc77dbc 100644 --- a/absl/time/clock_test.cc +++ b/absl/time/clock_test.cc
@@ -18,8 +18,10 @@ #if defined(ABSL_HAVE_ALARM) #include <signal.h> #include <unistd.h> -#elif defined(_AIX) +#ifdef _AIX +// sig_t is not defined in AIX. typedef void (*sig_t)(int); +#endif #elif defined(__linux__) || defined(__APPLE__) #error all known Linux and Apple targets have alarm #endif