mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Add autoconf magic to support Bitrig
Bitrig is an openbsd fork. Patch from dhill. Ticket 6982.
This commit is contained in:
parent
91b18b12d9
commit
d92d3f3335
3
changes/6982
Normal file
3
changes/6982
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
o Minor features (portability):
|
||||||
|
- Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from dhill.
|
||||||
|
Ticket 6982.
|
@ -743,7 +743,7 @@ if test x$transparent = xtrue ; then
|
|||||||
if test x$transparent_ok = x1 ; then
|
if test x$transparent_ok = x1 ; then
|
||||||
AC_DEFINE(USE_TRANSPARENT, 1, "Define to enable transparent proxy support")
|
AC_DEFINE(USE_TRANSPARENT, 1, "Define to enable transparent proxy support")
|
||||||
case $host in
|
case $host in
|
||||||
*-*-openbsd*)
|
*-*-openbsd* | *-*-bitrig*)
|
||||||
AC_DEFINE(OPENBSD, 1, "Define to handle pf on OpenBSD properly") ;;
|
AC_DEFINE(OPENBSD, 1, "Define to handle pf on OpenBSD properly") ;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
@ -1252,7 +1252,7 @@ if test x$enable_gcc_warnings = xyes || test x$enable_gcc_warnings_advisory = xy
|
|||||||
CFLAGS="$save_CFLAGS"
|
CFLAGS="$save_CFLAGS"
|
||||||
|
|
||||||
case $host in
|
case $host in
|
||||||
*-*-openbsd*)
|
*-*-openbsd* | *-*-bitrig*)
|
||||||
# Some OpenBSD versions (like 4.8) have -Wsystem-headers by default.
|
# Some OpenBSD versions (like 4.8) have -Wsystem-headers by default.
|
||||||
# That's fine, except that the headers don't pass -Wredundant-decls.
|
# That's fine, except that the headers don't pass -Wredundant-decls.
|
||||||
# Therefore, let's disable -Wsystem-headers when we're building
|
# Therefore, let's disable -Wsystem-headers when we're building
|
||||||
|
Loading…
Reference in New Issue
Block a user