Re: [MacPorts] #64941: usbredir @0.9.0: error: ‘TCP_KEEPINTVL’ undeclared

MacPorts noreply at macports.org
Wed Apr 6 00:34:46 UTC 2022


#64941: usbredir @0.9.0: error: ‘TCP_KEEPINTVL’ undeclared
-------------------------+-------------------------------------------------
  Reporter:              |      Owner:  ryandesign
  barracuda156           |
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.7.2
Resolution:              |   Keywords:  tiger leopard snowleopard lion
      Port:  usbredir    |  mountainlion
-------------------------+-------------------------------------------------

Comment (by barracuda156):

 Replying to [comment:2 ryandesign]:
 > Yes, this problem affects Mountain Lion and earlier. I guess
 `TCP_KEEPINTVL` and `TCP_KEEPCNT ` aren't declared by the system headers
 on those OS versions. I haven't investigated whether upstream has already
 fixed this (we are not using the latest version yet because that would
 require switching to the meson build system and I didn't feel like dealing
 with that yet) or, if not, what the solution would be.

 Yeah, these appear from 10.9 onwards:

 #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
 …
 #define TCP_KEEPINTVL           0x101   /* interval between keepalives */
 #define TCP_KEEPCNT             0x102   /* number of keepalives before
 close */

-- 
Ticket URL: <https://trac.macports.org/ticket/64941#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list