From b9b925341f9e90f5e7aa0cf23f036c29c7e454eb Mon Sep 17 00:00:00 2001 From: Milad Fa <46688537+miladfarca@users.noreply.github.com> Date: Tue, 5 Oct 2021 15:21:55 -0400 Subject: Fix typedef of sig_t on AIX (#1030) --- absl/time/clock_test.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'absl') 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 #include -#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 -- cgit v1.2.3