diff options
author | Martin Hebnes Pedersen <martin.h.pedersen@gmail.com> | 2011-12-17 17:51:07 +0100 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-12-19 11:27:08 -0500 |
commit | d5e964731c009589952be246d80d4114f65d5ee2 (patch) | |
tree | d032eb4faf4c55186642b0ad72447bef6520fa0e | |
parent | f783a326b82518bf75b1d3952332b05aac7ffd9b (diff) | |
download | tor-d5e964731c009589952be246d80d4114f65d5ee2.tar.gz tor-d5e964731c009589952be246d80d4114f65d5ee2.zip |
Fixed build with GCC < 3.3
Preprocessor directives should not be put inside the arguments
of a macro. This is not supported on older GCC releases (< 3.3)
thus broke compilation on Haiku (running gcc2).
-rw-r--r-- | changes/portability_01_haiku | 11 | ||||
-rw-r--r-- | src/or/main.c | 7 |
2 files changed, 14 insertions, 4 deletions
diff --git a/changes/portability_01_haiku b/changes/portability_01_haiku new file mode 100644 index 0000000000..ab583812c7 --- /dev/null +++ b/changes/portability_01_haiku @@ -0,0 +1,11 @@ + o Minor buxfixes: + - During configure, search for library containing cos function as + libm lives in libcore on some platforms (BeOS/Haiku). + Linking against libm was hard-coded before. Bugfix on + 0.2.2.2-alpha, fixes the first part of bug 4727. Patch and + analysis by Martin Hebnes Pedersen. + - Preprocessor directives should not be put inside the arguments + of a macro. This would break compilation with GCC releases prior + to version 3.3. Bugfix on 0.2.3.3-alpha, fixes the other part of + bug 4727. Patch and analysis by Martin Hebnes Pedersen. + diff --git a/src/or/main.c b/src/or/main.c index 74583b2ea0..1ba33957a6 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -2268,13 +2268,12 @@ tor_init(int argc, char *argv[]) { const char *version = get_version(); - log_notice(LD_GENERAL, "Tor v%s%s running on %s.", version, #ifdef USE_BUFFEREVENTS - " (with bufferevents)", + log_notice(LD_GENERAL, "Tor v%s (with bufferevents) running on %s.", + version, get_uname()); #else - "", + log_notice(LD_GENERAL, "Tor v%s running on %s.", version, get_uname()); #endif - get_uname()); log_notice(LD_GENERAL, "Tor can't help you if you use it wrong! " "Learn how to be safe at " |