支持openEuler 2203 LTS系统
This commit is contained in:
5
configure
vendored
5
configure
vendored
@ -709,6 +709,7 @@ with_selinux
|
||||
krb_srvtab
|
||||
with_python
|
||||
with_openeuler_os
|
||||
with_openeuler_major
|
||||
enable_thread_safety
|
||||
INCLUDES
|
||||
TAS
|
||||
@ -828,6 +829,7 @@ enable_nls
|
||||
with_pgport
|
||||
with_gs_version
|
||||
with_openeuler_os
|
||||
with_openeuler_major
|
||||
enable_shared
|
||||
enable_rpath
|
||||
enable_jemalloc
|
||||
@ -3272,6 +3274,9 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
if [ "$(cat /etc/system-release)" == "openEuler release 22.03 LTS" ]; then
|
||||
with_openeuler_major=yes
|
||||
fi
|
||||
|
||||
#
|
||||
# --enable-coverage enables generation of code coverage metrics with gcov
|
||||
|
@ -211,6 +211,7 @@ TCL_SHLIB_LD_LIBS = @TCL_SHLIB_LD_LIBS@
|
||||
PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
|
||||
PTHREAD_LIBS = @PTHREAD_LIBS@
|
||||
with_openeuler_os = @with_openeuler_os@
|
||||
with_openeuler_major = @with_openeuler_major@
|
||||
|
||||
|
||||
#############################################################################
|
||||
@ -728,6 +729,11 @@ endif
|
||||
ifeq ($(with_openeuler_os), yes)
|
||||
override CPPFLAGS := $(CPPFLAGS) -DWITH_OPENEULER_OS
|
||||
endif
|
||||
|
||||
ifeq ($(with_openeuler_major), yes)
|
||||
override CPPFLAGS := $(CPPFLAGS) -DOPENEULER_MAJOR
|
||||
endif
|
||||
|
||||
CC = @CC@
|
||||
GCC = @GCC@
|
||||
C = gcc
|
||||
|
@ -31,10 +31,10 @@
|
||||
#include <sys/poll.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/socket.h>
|
||||
#ifndef WITH_OPENEULER_OS
|
||||
#include <sys/sysctl.h>
|
||||
#else
|
||||
#if (defined WITH_OPENEULER_OS) || (defined OPENEULER_MAJOR)
|
||||
#include <linux/sysctl.h>
|
||||
#else
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
#include <sys/ptrace.h>
|
||||
#include <asm/ptrace.h>
|
||||
|
@ -54,10 +54,10 @@
|
||||
#include <sys/poll.h>
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/socket.h>
|
||||
#ifndef WITH_OPENEULER_OS
|
||||
#include <sys/sysctl.h>
|
||||
#else
|
||||
#if (defined WITH_OPENEULER_OS) || (defined OPENEULER_MAJOR)
|
||||
#include <linux/sysctl.h>
|
||||
#else
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
#include <sys/uio.h>
|
||||
#include <sys/wait.h>
|
||||
|
@ -28,6 +28,10 @@
|
||||
|
||||
#define PAGE_SIZE 4096
|
||||
#define BBOX_PROC_PATH_LEN 128
|
||||
#ifdef MINSIGSTKSZ
|
||||
#undef MINSIGSTKSZ
|
||||
#endif
|
||||
#define MINSIGSTKSZ 5120
|
||||
|
||||
#define BBOX_ALT_STACKSIZE (MINSIGSTKSZ + 4096 * 32)
|
||||
|
||||
|
@ -30,7 +30,9 @@
|
||||
#include "typed_statistics_generator.h"
|
||||
|
||||
#include "sys/times.h"
|
||||
#ifndef OPENEULER_MAJOR
|
||||
#include "sys/vtimes.h"
|
||||
#endif
|
||||
|
||||
namespace MOT {
|
||||
/**
|
||||
|
@ -164,7 +164,7 @@ extern ErrorLevel min_debug_level;
|
||||
#define MAX_CONTINUOUS_COUNT 10
|
||||
#define INIT_TX_ALLOC_BUFF_NUM 5
|
||||
|
||||
#ifndef WITH_OPENEULER_OS
|
||||
#if (!defined WITH_OPENEULER_OS) && (!defined OPENEULER_MAJOR)
|
||||
extern int gettimeofday(struct timeval* tp, struct timezone* tzp);
|
||||
#endif
|
||||
//extern THR_LOCAL knl_thrd_context t_thrd;
|
||||
|
Reference in New Issue
Block a user