X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsig-handler.h;fp=lib%2Fsig-handler.h;h=5bba138463c792f32a43868acfc0635a7cab9375;hb=6925387eae842273dbb242d3933046bb13e50bc2;hp=386135f7ba923a499f89bccab265b2996ede9136;hpb=2a7c405b01fb6c89664fe15554d96854efb3f837;p=gnulib.git diff --git a/lib/sig-handler.h b/lib/sig-handler.h index 386135f7b..5bba13846 100644 --- a/lib/sig-handler.h +++ b/lib/sig-handler.h @@ -20,13 +20,18 @@ #include +_GL_INLINE_HEADER_BEGIN +#ifndef SIG_HANDLER_INLINE +# define SIG_HANDLER_INLINE _GL_INLINE +#endif + /* Convenience type when working with signal handlers. */ typedef void (*sa_handler_t) (int); /* Return the handler of a signal, as a sa_handler_t value regardless of its true type. The resulting function can be compared to special values like SIG_IGN but it is not portable to call it. */ -static inline sa_handler_t +SIG_HANDLER_INLINE sa_handler_t get_handler (struct sigaction const *a) { #ifdef SA_SIGINFO @@ -41,4 +46,6 @@ get_handler (struct sigaction const *a) return a->sa_handler; } +_GL_INLINE_HEADER_END + #endif /* _GL_SIG_HANDLER_H */