Messages in this thread Patch in this message | | | From | Seth Forshee <> | Subject | [PATCH trace-cmd 1/5] trace-cmd/listen: Remove use of sighandler_t | Date | Thu, 24 Oct 2013 14:14:30 -0500 |
| |
sighandler_t is a GNU extension and may not be defined if _GNU_SOURCE is not set. To minimize the potential for build problems, change signal_setup() to declare its handle argument the same way struct sigaction declares the sa_handler member.
Signed-off-by: Seth Forshee <seth.forshee@canonical.com> --- trace-listen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/trace-listen.c b/trace-listen.c index 8b8f02c..0019089 100644 --- a/trace-listen.c +++ b/trace-listen.c @@ -69,7 +69,7 @@ static void put_temp_file(char *file) #define MAX_PATH 1024 -static void signal_setup(int sig, sighandler_t handle) +static void signal_setup(int sig, void (*handle)(int)) { struct sigaction action; -- 1.8.3.2
| |