1 /* 2 * Copyright (C) 2006 Adam Kropelin 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of version 2 of the GNU General 6 * Public License as published by the Free Software Foundation. 7 * 8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 * General Public License for more details. 12 * 13 * You should have received a copy of the GNU General Public 14 * License along with this program; if not, write to the Free 15 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 16 * MA 02110-1335, USA. 17 */ 18 19 #ifndef __COMPAT_SIGNAL_H_ 20 #define __COMPAT_SIGNAL_H_ 21 22 /* Pull in mingw signal.h */ 23 #include_next <signal.h> 24 25 struct sigaction { 26 int sa_flags; 27 void (*sa_handler)(int); 28 }; 29 30 #define SIGKILL 9 31 #define SIGUSR2 9999 32 #define SIGALRM 0 33 #define SIGHUP 0 34 #define SIGCHLD 0 35 #define SIGPIPE 0 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 41 #define sigfillset(x) 42 #define sigaction(a, b, c) 43 int kill(int pid, int signo); 44 45 #ifdef __cplusplus 46 }; 47 #endif 48 49 #endif /* __COMPAT_SIGNAL_H_ */ 50