-
- Downloads
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 27df23ab 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>
Showing
- src/app/config/config.c 3 additions, 0 deletionssrc/app/config/config.c
- src/core/or/connection_edge.c 3 additions, 0 deletionssrc/core/or/connection_edge.c
- src/ext/byteorder.h 4 additions, 0 deletionssrc/ext/byteorder.h
- src/ext/ed25519/donna/ed25519-donna-portable-identify.h 1 addition, 1 deletionsrc/ext/ed25519/donna/ed25519-donna-portable-identify.h
- src/ext/trunnel/trunnel.c 5 additions, 1 deletionsrc/ext/trunnel/trunnel.c
- src/lib/err/backtrace.c 3 additions, 0 deletionssrc/lib/err/backtrace.c
- src/lib/net/inaddr_st.h 4 additions, 1 deletionsrc/lib/net/inaddr_st.h
- src/test/test-memwipe.c 4 additions, 0 deletionssrc/test/test-memwipe.c
- src/test/test_options.c 4 additions, 0 deletionssrc/test/test_options.c
Please register or sign in to comment