Skip to content

Commit b9b9253

Browse files
authored
Fix typedef of sig_t on AIX (#1030)
1 parent 4167eab commit b9b9253

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: absl/time/clock_test.cc

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
#if defined(ABSL_HAVE_ALARM)
1919
#include <signal.h>
2020
#include <unistd.h>
21-
#elif defined(_AIX)
21+
#ifdef _AIX
22+
// sig_t is not defined in AIX.
2223
typedef void (*sig_t)(int);
24+
#endif
2325
#elif defined(__linux__) || defined(__APPLE__)
2426
#error all known Linux and Apple targets have alarm
2527
#endif

0 commit comments

Comments
 (0)