From 4bc9442f433f7a6bb01a3c1206e5a434372e4275 Mon Sep 17 00:00:00 2001 From: Sebastian Jaenicke Date: Fri, 13 Jan 2017 19:28:55 +0100 Subject: [PATCH] add Solaris support --- Makefile | 2 +- hmm.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e72f7f1..b7f1c44 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC= gcc CFLAG= -O3 -m64 -w -FLAGS= -lm -lpthread +FLAGS= -lm -lpthread -lrt HEADER= util_lib.h fasta.h run_hmm.h SRCS= util_lib.c hmm_lib.c run_hmm.c fasta.c OBJ= util_lib.o hmm_lib.o run_hmm.o fasta.o diff --git a/hmm.h b/hmm.h index 1b86227..b2cccba 100644 --- a/hmm.h +++ b/hmm.h @@ -107,6 +107,10 @@ typedef sem_t* SEM_T; typedef sem_t SEM_T; #define sem_wait(x) sem_wait(&x) #define sem_post(x) sem_post(&x) +#elif __sun__ +typedef sem_t SEM_T; +#define sem_wait(x) sem_wait(&x) +#define sem_post(x) sem_post(&x) #endif SEM_T sema_Q;