tor/src/lib/net
Kris Katterjohn c13a81f7f9 Fix (and make consistent) the use of OpenBSD preprocessor macro tests
Prior to this commit, the testsuite was failing on OpenBSD.  After
this commit the testsuite runs fine on OpenBSD.

It was previously decided to test for the OpenBSD macro (rather than
__OpenBSD__, etc.) because OpenBSD forks seem to have the former
macro defined.  sys/param.h must be included for the OpenBSD macro
definition; however, many files tested for the OpenBSD macro without
having this header included.

This commit includes sys/param.h in the files where the OpenBSD macro
is used (and sys/param.h is not already included), and it also
changes some instances of the __OpenBSD__ macro to OpenBSD.

See commit 27df23abb6 which changed
everything to use OpenBSD instead of __OpenBSD__ or OPENBSD.  See
also tickets #6982 and #20980 (the latter ticket is where it was
decided to use the OpenBSD macro).

Signed-off-by: Kris Katterjohn <katterjohn@gmail.com>
2019-01-09 08:51:57 -05:00
..
.may_include Remove dependency from socketpair.c on address.h 2018-08-01 09:24:22 -04:00
address.c Merge remote-tracking branch 'teor/bug27521' 2018-09-07 10:29:45 -04:00
address.h Remove all users of addr_port_lookup outside of address.c 2018-07-10 13:23:37 -04:00
alertsock.c File-level documentation for some of src/lib. 2018-07-01 20:22:55 -04:00
alertsock.h File-level documentation for some of src/lib. 2018-07-01 20:22:55 -04:00
buffers_net.c Rename torlog.[ch] to log.[ch] 2018-07-10 15:20:30 -04:00
buffers_net.h File-level documentation for some of src/lib. 2018-07-01 20:22:55 -04:00
gethostname.c File-level summary documentation for src/lib/*/*.[ch] 2018-07-10 12:22:01 -04:00
gethostname.h File-level summary documentation for src/lib/*/*.[ch] 2018-07-10 12:22:01 -04:00
inaddr_st.h Fix (and make consistent) the use of OpenBSD preprocessor macro tests 2019-01-09 08:51:57 -05:00
inaddr.c Refactor ipv[46].[ch] 2018-07-10 12:50:38 -04:00
inaddr.h Refactor ipv[46].[ch] 2018-07-10 12:50:38 -04:00
include.am Extract tor_ersatz_socketpair into a new c file 2018-08-01 08:47:27 -04:00
nettypes.h File-level summary documentation for src/lib/*/*.[ch] 2018-07-10 12:22:01 -04:00
resolve.c Rename util_malloc to malloc. 2018-07-10 15:16:57 -04:00
resolve.h Move tor_addr_{,port_}lookup to resolve.c 2018-07-10 13:00:02 -04:00
socket.c Add a tor_release_socket_ownership() function. 2018-09-20 12:46:47 -04:00
socket.h Add a tor_release_socket_ownership() function. 2018-09-20 12:46:47 -04:00
socketpair.c Include torint.h in socketpair.c for intptr_t definition. 2018-09-13 17:54:26 -04:00
socketpair.h Refactor tor_ersatz_socketpair() not to need socket. 2018-08-01 11:01:52 -04:00
socks5_status.h File-level summary documentation for src/lib/*/*.[ch] 2018-07-10 12:22:01 -04:00