Skip to content

Commit

Permalink
Define IPV6_TCLASS when it isn't defined on Hurd
Browse files Browse the repository at this point in the history
Per https://bugs.debian.org/738646, Hurd uses the *BSD definition for
the socket option IPV6_TCLASS, but it is not yet provided in any system
header files.

Signed-off-by: Mike Miller <mtmiller@debian.org>
  • Loading branch information
mtmiller committed Jan 12, 2019
1 parent 605a802 commit 6d499f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ssl.c
Expand Up @@ -49,6 +49,13 @@
#define AI_NUMERICSERV 0
#endif

/* GNU Hurd doesn't yet declare IPV6_TCLASS */
#ifndef IPV6_TCLASS
#if defined(__GNU__)
#define IPV6_TCLASS 61
#endif
#endif

static inline int connect_pending()
{
#ifdef _WIN32
Expand Down

0 comments on commit 6d499f1

Please sign in to comment.