debian/patches/hurd_fixes: Extend to ncbi_localip.c.
authorAaron M. Ucko <ucko@debian.org>
Fri, 26 Jul 2024 18:53:02 +0000 (14:53 -0400)
committerAaron M. Ucko <ucko@debian.org>
Fri, 26 Jul 2024 18:54:31 +0000 (14:54 -0400)
It otherwise accommodates PATH_MAX's absence only under Windows.

debian/changelog
debian/patches/hurd_fixes

index e020ae957ec2cae19a2ccd5961e885741f276a23..583e9aa1baa88a87716715e2da1459d8fa0b3a6d 100644 (file)
@@ -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 <ucko@debian.org>  Fri, 26 Jul 2024 14:43:37 -0400
+ -- Aaron M. Ucko <ucko@debian.org>  Fri, 26 Jul 2024 14:53:01 -0400
 
 ncbi-blast+ (2.16.0+ds-1) unstable; urgency=medium
 
index a9fccde724b0a608112d6089ac08585025733174..884c030e1c3061ab540c4938f666ac1de0fbe74e 100644 (file)
@@ -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