non-posix signal numbers are defined if not existed
This commit is contained in:
parent
c51640a971
commit
747dfe20df
|
@ -1,6 +1,31 @@
|
||||||
#include "scsh_aux.h"
|
#include "scsh_aux.h"
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
|
|
||||||
|
#ifndef SIGURG
|
||||||
|
#define SIGURG 9999
|
||||||
|
#endif
|
||||||
|
#ifndef SIGXCPU
|
||||||
|
#define SIGXCPU 9999
|
||||||
|
#endif
|
||||||
|
#ifndef SIGXFSZ
|
||||||
|
#define SIGXFSZ 9999
|
||||||
|
#endif
|
||||||
|
#ifndef SIGVTALRM
|
||||||
|
#define SIGVTALRM 9999
|
||||||
|
#endif
|
||||||
|
#ifndef SIGPROF
|
||||||
|
#define SIGPROF 9999
|
||||||
|
#endif
|
||||||
|
#ifndef SIGWINCH
|
||||||
|
#define SIGWINCH 9999
|
||||||
|
#endif
|
||||||
|
#ifndef SIGIO
|
||||||
|
#define SIGIO 9999
|
||||||
|
#endif
|
||||||
|
#ifndef SIGPWR
|
||||||
|
#define SIGPWR 9999
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char* argv[]){
|
int main(int argc, char* argv[]){
|
||||||
int signr = atoi(argv[1]);
|
int signr = atoi(argv[1]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue