diff --git a/liba/Makefile b/liba/Makefile index 42a8b3a50..aa2375c09 100644 --- a/liba/Makefile +++ b/liba/Makefile @@ -36,10 +36,10 @@ objs += $(addprefix liba/src/external/openbsd/, \ s_floorf.o \ s_roundf.o \ s_scalbnf.o \ + s_signgam.o \ s_sinf.o \ s_tanf.o \ w_lgammaf.o \ - gamma_extern_variable.o\ ) liba/src/external/openbsd/%.o: CFLAGS += -Iliba/src/external/openbsd/include -Wno-parentheses -Wno-implicit-function-declaration diff --git a/liba/src/external/openbsd/gamma_extern_variable.c b/liba/src/external/openbsd/gamma_extern_variable.c deleted file mode 100644 index ace49ea4c..000000000 --- a/liba/src/external/openbsd/gamma_extern_variable.c +++ /dev/null @@ -1,3 +0,0 @@ -/* The openbsd w_lgamma.c requieres at linking a symbol signgam */ - -int signgam; diff --git a/liba/src/external/openbsd/s_signgam.c b/liba/src/external/openbsd/s_signgam.c new file mode 100644 index 000000000..cec0a5a75 --- /dev/null +++ b/liba/src/external/openbsd/s_signgam.c @@ -0,0 +1,4 @@ +/* $OpenBSD: s_signgam.c,v 1.2 2015/01/20 04:41:01 krw Exp $ */ +#include "math.h" +#include "math_private.h" +int signgam = 0;