diff --git a/Mokou/service.c b/Mokou/service.c index c3dd843..1080f4b 100644 --- a/Mokou/service.c +++ b/Mokou/service.c @@ -17,6 +17,43 @@ struct mk_service** services = NULL; +#ifdef __linux__ +const char* sys_signame[] = { + "HUP", + "INT", + "QUIT", + "ILL", + "TRAP", + "ABRT", + "BUS", + "FPE", + "KILL", + "USR1", + "SEGV", + "USR2", + "PIPE", + "ALRM", + "TERM", + "STKFLT", + "CHLD", + "CONT", + "STOP", + "TSTP", + "TTIN", + "TTOU", + "URG", + "XCPU", + "XFSZ", + "VTALRM", + "PROF", + "WINCH", + "POLL", + "PWR", + "SYS", + "RTMIN" +}; +#endif + void mk_service_scan(void){ if(services != NULL){ int i; diff --git a/Platform/linux.mk b/Platform/linux.mk new file mode 100644 index 0000000..855070c --- /dev/null +++ b/Platform/linux.mk @@ -0,0 +1,7 @@ +# $Id$ + +CC = cc +CFLAGS = -std=c99 -g -DPREFIX=\"$(PREFIX)\" -D_DEFAULT_SOURCE +LDFLAGS = +LIBS = -lpthread +EXEC =