summaryrefslogtreecommitdiff
path: root/modules/signal
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-03-21 17:57:40 -0600
committerEric Blake <ebb9@byu.net>2009-03-23 04:55:12 -0600
commitbde8c798d44b81439cc2701ae74d39727fe7c105 (patch)
treebc9f43d25f6db1548121f814e0c4d95cba475742 /modules/signal
parent7f4b1f45ce477f8374d382bd75f5f0a7e865e2c6 (diff)
downloadgnulib-bde8c798d44b81439cc2701ae74d39727fe7c105.tar.gz
signal.h: always support 'volatile sig_atomic_t'
* m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation. (gl_SIGNAL_H_DEFAULTS): Add a default. * modules/signal (Makefile.am): Substitute if needed. * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that users can blindly add volatile. * doc/posix-headers/signal.texi (signal.h): Document it. Reported by Matthew Woehlke. Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'modules/signal')
-rw-r--r--modules/signal1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/signal b/modules/signal
index 5afb24f1b6..bfef96f41b 100644
--- a/modules/signal
+++ b/modules/signal
@@ -31,6 +31,7 @@ signal.h: signal.in.h
-e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \
-e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \
-e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \
+ -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \
-e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
< $(srcdir)/signal.in.h; \
} > $@-t