]> xenbits.xensource.com Git - unikraft/libs/ruby.git/commitdiff
ruby/config.h: Disable features unavailable in Unikraft
authorAndrei Gogonea <andrei.gogonea09@gmail.com>
Sun, 8 Dec 2019 09:54:54 +0000 (11:54 +0200)
committerCostin Lupu <costin.lupu@cs.pub.ro>
Tue, 10 Dec 2019 09:29:05 +0000 (11:29 +0200)
Signed-off-by: Andrei Gogonea <andrei.gogonea09@gmail.com>
Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Stefan Teodorescu <stefanl.teodorescu@gmail.com>
include/ruby/config.h

index 7437f21d89220353ec6a9ff1396efc66e38cdcda..81992de36dbe42a492b8a9c4dd1072c9eaa71e05 100644 (file)
@@ -1,5 +1,8 @@
 #ifndef INCLUDE_RUBY_CONFIG_H
 #define INCLUDE_RUBY_CONFIG_H 1
+
+#include <uk/config.h>
+
 /* confdefs.h */
 #define STDC_HEADERS 1
 #define HAVE_SYS_TYPES_H 1
@@ -34,7 +37,7 @@
 #define HAVE_LOCALE_H 1
 #define HAVE_MALLOC_H 1
 #define HAVE_PWD_H 1
-#define HAVE_SANITIZER_ASAN_INTERFACE_H 1
+/* #define HAVE_SANITIZER_ASAN_INTERFACE_H 1 */
 #define HAVE_STDALIGN_H 1
 #define HAVE_SYS_EVENTFD_H 1
 #define HAVE_SYS_FCNTL_H 1
 #define HAVE_SYS_SELECT_H 1
 #define HAVE_SYS_SENDFILE_H 1
 #define HAVE_SYS_SOCKET_H 1
-#define HAVE_SYS_SYSCALL_H 1
+/* TODO #define HAVE_SYS_SYSCALL_H 1 */
 #define HAVE_SYS_SYSMACROS_H 1
 #define HAVE_SYS_TIME_H 1
 #define HAVE_SYS_TIMES_H 1
 #define HAVE_SYS_UIO_H 1
-#define HAVE_SYSCALL_H 1
+/* TODO #define HAVE_SYSCALL_H 1 */
 #define HAVE_TIME_H 1
 #define HAVE_UCONTEXT_H 1
 #define HAVE_UTIME_H 1
 #define SIZEOF_UINTPTR_T 8
 #define HAVE_SSIZE_T 1
 #define SIZEOF_SSIZE_T 8
-#define STACK_END_ADDRESS __libc_stack_end
+/* #define STACK_END_ADDRESS __libc_stack_end */
 #define GETGROUPS_T gid_t
 #define RETSIGTYPE void
 #define HAVE_ALLOCA_H 1
 #define HAVE_TGAMMA 1
 #define SPT_TYPE SPT_REUSEARGV
 #define HAVE_SIGNBIT 1
-#define HAVE_FORK 1
+/*#define HAVE_FORK 1
 #define HAVE_VFORK 1
 #define HAVE_WORKING_VFORK 1
-#define HAVE_WORKING_FORK 1
+#define HAVE_WORKING_FORK 1*/
 #define HAVE__LONGJMP 1
 #define HAVE_ATAN2L 1
 #define HAVE_ATAN2F 1
 #define HAVE_LOG2 1
 #define HAVE_LSTAT 1
 #define HAVE_LUTIMES 1
-#define HAVE_MALLOC_USABLE_SIZE 1
+/*#define HAVE_MALLOC_USABLE_SIZE 1 */
 #define HAVE_MBLEN 1
 #define HAVE_MEMALIGN 1
 #define HAVE_WRITEV 1
 #define HAVE_SIGPROCMASK 1
 #define HAVE_SINH 1
 #define HAVE_SYMLINK 1
-#define HAVE_SYSCALL 1
+/* TODO #define HAVE_SYSCALL 1 */
 #define HAVE_SYSCONF 1
 #define HAVE_TANH 1
 #define HAVE_TELLDIR 1
 #define HAVE_LIBRT 1
 #define HAVE_TIMER_CREATE 1
 #define HAVE_TIMER_SETTIME 1
-#define HAVE_STRUCT_TM_TM_ZONE 1
-#define HAVE_TM_ZONE 1
+/*#define HAVE_STRUCT_TM_TM_ZONE 1*/
+/*#define HAVE_TM_ZONE 1*/
 #define HAVE_STRUCT_TM_TM_GMTOFF 1
 #define HAVE_DAYLIGHT 1
 #define NEGATIVE_TIME_T 1
 #define HAVE_SETCONTEXT 1
 #define USE_ELF 1
 #define HAVE_ELF_H 1
+#if CONFIG_LIBZLIB
 #define HAVE_LIBZ 1
+#endif
+#if CONFIG_LIBBACKTRACE
 #define HAVE_BACKTRACE 1
-#define HAVE_VALGRIND_MEMCHECK_H 1
+#endif
+/* #define HAVE_VALGRIND_MEMCHECK_H 1 */
 #define DLEXT_MAXLEN 3
 #define DLEXT ".so"
 #define HAVE__SETJMP 1
 #define RUBY_JMP_BUF jmp_buf
 #define USE_MJIT 1
 #define HAVE_PTHREAD_H 1
-#define RUBY_PLATFORM "x86_64-linux"
+#define RUBY_PLATFORM "x86_64-unikraft"
 #endif /* INCLUDE_RUBY_CONFIG_H */