From c0f41780ad1bfc819683efd47d58138750b5c42e Mon Sep 17 00:00:00 2001 From: "Aaron M. Ucko" Date: Fri, 26 Jul 2024 14:53:02 -0400 Subject: [PATCH] debian/patches/hurd_fixes: Extend to ncbi_localip.c. It otherwise accommodates PATH_MAX's absence only under Windows. --- debian/changelog | 4 +++- debian/patches/hurd_fixes | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index e020ae95..583e9aa1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,12 @@ ncbi-blast+ (2.16.0+ds-2) UNRELEASED; urgency=medium * NOT RELEASED YET. + * debian/patches/hurd_fixes: Extend to ncbi_localip.c, which otherwise + accommodates PATH_MAX's absence only under Windows. * debian/rules: Link with -latomic on most 32-bit architectures (excepting only x86 and armhf, which succeed as is). - -- Aaron M. Ucko Fri, 26 Jul 2024 14:43:37 -0400 + -- Aaron M. Ucko Fri, 26 Jul 2024 14:53:01 -0400 ncbi-blast+ (2.16.0+ds-1) unstable; urgency=medium diff --git a/debian/patches/hurd_fixes b/debian/patches/hurd_fixes index a9fccde7..884c030e 100644 --- a/debian/patches/hurd_fixes +++ b/debian/patches/hurd_fixes @@ -40,3 +40,14 @@ Last-Update: 2020-09-19 # define PATH_MAX 512 // will actually use less than 32 chars #endif // NCBI_OS_MSWIN && !PATH_MAX +--- a/c++/src/connect/ncbi_localip.c ++++ b/c++/src/connect/ncbi_localip.c +@@ -67,7 +67,7 @@ + # define INADDR_LOOPBACK 0x7F000001 + #endif /*!INADDR_LOOPBACK*/ + +-#if defined(NCBI_OS_MSWIN) && !defined(PATH_MAX) ++#if /* defined(NCBI_OS_MSWIN) && */ !defined(PATH_MAX) + # ifdef _MAX_PATH + # define PATH_MAX _MAX_PATH + #else -- 2.30.2