diff options
author | robot-ydb-importer <robot-ydb-importer@yandex-team.com> | 2024-07-24 15:47:52 +0300 |
---|---|---|
committer | robot-ydb-importer <robot-ydb-importer@yandex-team.com> | 2024-07-24 16:02:13 +0300 |
commit | 58ffd25e088cf7298cddfc367ef9059ceafe9855 (patch) | |
tree | 196763ea20636cf13ee0409d2690c305cb5ad244 /contrib/libs | |
parent | 5c9815caeeb2080bc4a0b3c89ac1f0f612d640cf (diff) | |
download | ydb-58ffd25e088cf7298cddfc367ef9059ceafe9855.tar.gz |
YDB Import 608
aef0f47d9d9c1681d064c16c3a6af372a0a10acb
Diffstat (limited to 'contrib/libs')
-rw-r--r-- | contrib/libs/postgresql/src/include/port/darwin.h | 8 | ||||
-rw-r--r-- | contrib/libs/postgresql/src/include/port/linux.h | 22 | ||||
-rw-r--r-- | contrib/libs/postgresql/src/include/port/win32.h | 79 |
3 files changed, 0 insertions, 109 deletions
diff --git a/contrib/libs/postgresql/src/include/port/darwin.h b/contrib/libs/postgresql/src/include/port/darwin.h deleted file mode 100644 index 15fb69d6db..0000000000 --- a/contrib/libs/postgresql/src/include/port/darwin.h +++ /dev/null @@ -1,8 +0,0 @@ -/* src/include/port/darwin.h */ - -#define __darwin__ 1 - -#if HAVE_DECL_F_FULLFSYNC /* not present before macOS 10.3 */ -#define HAVE_FSYNC_WRITETHROUGH - -#endif diff --git a/contrib/libs/postgresql/src/include/port/linux.h b/contrib/libs/postgresql/src/include/port/linux.h deleted file mode 100644 index 7a6e46cdbb..0000000000 --- a/contrib/libs/postgresql/src/include/port/linux.h +++ /dev/null @@ -1,22 +0,0 @@ -/* src/include/port/linux.h */ - -/* - * As of July 2007, all known versions of the Linux kernel will sometimes - * return EIDRM for a shmctl() operation when EINVAL is correct (it happens - * when the low-order 15 bits of the supplied shm ID match the slot number - * assigned to a newer shmem segment). We deal with this by assuming that - * EIDRM means EINVAL in PGSharedMemoryIsInUse(). This is reasonably safe - * since in fact Linux has no excuse for ever returning EIDRM; it doesn't - * track removed segments in a way that would allow distinguishing them from - * private ones. But someday that code might get upgraded, and we'd have - * to have a kernel version test here. - */ -#define HAVE_LINUX_EIDRM_BUG - -/* - * Set the default wal_sync_method to fdatasync. With recent Linux versions, - * xlogdefs.h's normal rules will prefer open_datasync, which (a) doesn't - * perform better and (b) causes outright failures on ext4 data=journal - * filesystems, because those don't support O_DIRECT. - */ -#define PLATFORM_DEFAULT_SYNC_METHOD SYNC_METHOD_FDATASYNC diff --git a/contrib/libs/postgresql/src/include/port/win32.h b/contrib/libs/postgresql/src/include/port/win32.h deleted file mode 100644 index c6213c77c3..0000000000 --- a/contrib/libs/postgresql/src/include/port/win32.h +++ /dev/null @@ -1,79 +0,0 @@ -/* src/include/port/win32.h */ - -/* - * We always rely on the WIN32 macro being set by our build system, - * but _WIN32 is the compiler pre-defined macro. So make sure we define - * WIN32 whenever _WIN32 is set, to facilitate standalone building. - */ -#if defined(_WIN32) && !defined(WIN32) -#define WIN32 -#endif - -/* - * Make sure _WIN32_WINNT has the minimum required value. - * Leave a higher value in place. When building with at least Visual - * Studio 2015 the minimum requirement is Windows Vista (0x0600) to - * get support for GetLocaleInfoEx() with locales. For everything else - * the minimum version is Windows XP (0x0501). - */ -#if defined(_MSC_VER) && _MSC_VER >= 1900 -#define MIN_WINNT 0x0600 -#else -#define MIN_WINNT 0x0501 -#endif - -#if defined(_WIN32_WINNT) && _WIN32_WINNT < MIN_WINNT -#undef _WIN32_WINNT -#endif - -#ifndef _WIN32_WINNT -#define _WIN32_WINNT MIN_WINNT -#endif - -/* - * We need to prevent <crtdefs.h> from defining a symbol conflicting with - * our errcode() function. Since it's likely to get included by standard - * system headers, pre-emptively include it now. - */ -#if defined(_MSC_VER) || defined(HAVE_CRTDEFS_H) -#define errcode __msvc_errcode -#include <crtdefs.h> -#undef errcode -#endif - -/* - * defines for dynamic linking on Win32 platform - */ - -/* - * Variables declared in the core backend and referenced by loadable - * modules need to be marked "dllimport" in the core build, but - * "dllexport" when the declaration is read in a loadable module. - * No special markings should be used when compiling frontend code. - */ -#ifndef FRONTEND -#ifdef BUILDING_DLL -#define PGDLLIMPORT __declspec (dllexport) -#else -#define PGDLLIMPORT __declspec (dllimport) -#endif -#endif - -/* - * Under MSVC, functions exported by a loadable module must be marked - * "dllexport". Other compilers don't need that. - */ -#ifdef _MSC_VER -#define PGDLLEXPORT __declspec (dllexport) -#endif - -/* - * Windows headers don't define this structure, but you can define it yourself - * to use the functionality. - */ -struct sockaddr_un -{ - unsigned short sun_family; - char sun_path[108]; -}; -#define HAVE_STRUCT_SOCKADDR_UN 1 |