]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
Add missing definitions needed for Redis port
authorCostin Lupu <costin.lupu@cs.pub.ro>
Fri, 1 Nov 2019 11:30:56 +0000 (13:30 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Tue, 5 Nov 2019 18:56:31 +0000 (20:56 +0200)
- Copy SA_NODEFER and SA_RESETHAND from musl
- Enable llroundl() function from origin code

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
Makefile.uk
include/sys/signal.h

index e5cebdd4aeb0f9a4916f5e396b999419fe3f81c3..a820aea0300116d25505319ac3513b502a029ce3 100644 (file)
@@ -84,6 +84,9 @@ LIBNEWLIB_GLOBAL_FLAGS-y  += -DMISSING_SYSCALL_NAMES -DMALLOC_PROVIDED
 LIBNEWLIB_GLOBAL_FLAGS-y  += -D_POSIX_REALTIME_SIGNALS
 LIBNEWLIB_GLOBAL_FLAGS-$(CONFIG_LIBNEWLIBC_WANT_IO_C99_FORMATS) += -D_WANT_IO_C99_FORMATS
 LIBNEWLIB_GLOBAL_FLAGS-$(CONFIG_LIBNEWLIBC_LINUX_ERRNO_EXTENSIONS) += -D__LINUX_ERRNO_EXTENSIONS__
+ifeq ($(CONFIG_ARCH_X86_64),y)
+LIBNEWLIB_GLOBAL_FLAGS-y  += -D_LDBL_EQ_DBL
+endif
 
 CFLAGS-y   += $(LIBNEWLIB_GLOBAL_FLAGS-y)
 CXXFLAGS-y += $(LIBNEWLIB_GLOBAL_FLAGS-y)
@@ -969,6 +972,7 @@ LIBNEWLIBM_SRCS-y += $(LIBNEWLIB_LIBM)/math/w_tgamma.c
 ################################################################################
 # Newlib/libm code -- common
 ################################################################################
+LIBNEWLIBM_SRCS-y += $(LIBNEWLIB_LIBM)/common/llroundl.c
 LIBNEWLIBM_SRCS-y += $(LIBNEWLIB_LIBM)/common/s_finite.c
 LIBNEWLIBM_SRCS-y += $(LIBNEWLIB_LIBM)/common/s_copysign.c
 LIBNEWLIBM_SRCS-y += $(LIBNEWLIB_LIBM)/common/s_modf.c
index 686eae314ad4eac545c69fa088d3ecc8beb586e7..706302ba635d8e085f6a54974a396f64271a7965 100644 (file)
@@ -34,4 +34,7 @@
 
 #define si_pid si_code /* hack until we have signals in Unikraft */
 
+#define SA_NODEFER    0x40000000
+#define SA_RESETHAND  0x80000000
+
 #include_next <sys/signal.h>