diff options
author | Milad Fa <46688537+miladfarca@users.noreply.github.com> | 2021-10-05 15:21:55 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 15:21:55 -0400 |
commit | b9b925341f9e90f5e7aa0cf23f036c29c7e454eb (patch) | |
tree | 951647fd0b356234bcf9a2a94a5943be7f316856 /absl | |
parent | 4167eab063636a1fadcd571e0a762ff67d742c25 (diff) |
Fix typedef of sig_t on AIX (#1030)
Diffstat (limited to 'absl')
-rw-r--r-- | absl/time/clock_test.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/absl/time/clock_test.cc b/absl/time/clock_test.cc index e6f627b3..bc77dbc2 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 |