1
0
Fork 0
mirror of https://repo.or.cz/socat.git synced 2025-07-11 22:23:24 +00:00

Option name so-protocol is preferred to so-prototype

This commit is contained in:
Gerhard Rieger 2021-01-01 12:37:02 +01:00
parent 1502f0cdcb
commit 6b83ddf5f2
4 changed files with 16 additions and 7 deletions

View file

@ -5,10 +5,18 @@
#ifndef __xio_socket_h_included
#define __xio_socket_h_included 1
/* SO_PROTOTYPE is OS defined on Solaris, HP-UX; we lend this for a more
general purpose */
#ifndef SO_PROTOTYPE
#define SO_PROTOTYPE 0x9999
/* SO_PROTOTYPE is defined on Solaris, HP-UX
SO_PROTOCOL in Linux, is the better name, but came much later */
#ifdef SO_PROTOCOL
# undef SO_PROTOTYPE
# define SO_PROTOTYPE SO_PROTOCOL
#else
# ifdef SO_PROTOTYPE
# define SO_PROTOCOL SO_PROTOTYPE
# else
# define SO_PROTOCOL 0x9999
# define SO_PROTOTYPE SO_PROTOCOL
# endif
#endif
extern const struct addrdesc xioaddr_socket_connect;