| 1 |
# sig_atomic_t.m4 |
| 2 |
# serial 3 |
| 3 |
dnl Copyright (C) 2003, 2009-2024 Free Software Foundation, Inc. |
| 4 |
dnl This file is free software; the Free Software Foundation |
| 5 |
dnl gives unlimited permission to copy and/or distribute it, |
| 6 |
dnl with or without modifications, as long as this notice is preserved. |
| 7 |
dnl This file is offered as-is, without any warranty. |
| 8 |
|
| 9 |
AC_DEFUN([gt_TYPE_SIG_ATOMIC_T], |
| 10 |
[ |
| 11 |
AC_CHECK_TYPES([sig_atomic_t], , |
| 12 |
[AC_DEFINE([sig_atomic_t], [int], |
| 13 |
[Define as an integer type suitable for memory locations that can be |
| 14 |
accessed atomically even in the presence of asynchronous signals.])], |
| 15 |
[#include <signal.h>]) |
| 16 |
]) |