Do not define POSIX.
It breaks integration with upstream re2 library on Chromium.
Without patching re2 library, with this define, it produces the
following error:
../../third_party/re2/re2/re2.h:254:5: error: expected identifier
POSIX, // POSIX syntax, leftmost-longest match
As we define POSIX on the command line, the C preprocessor changes
RE2::POSIX to nothing and thus break the compilation. :(
See chromium-dev mailing list for this discussion in
https://groups.google.com/a/chromium.org/d/topic/chromium-dev/UXCHnX7pV44/discussion
BUG=None
TEST=ninja -C out/Debug, everything compiles as before
R=sergeyu@chromium.org, tommi@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/46049004
Patch from Thiago Farina <tfarina@chromium.org>.
Cr-Original-Commit-Position: refs/heads/master@{#9032}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 91543731c3a850dcc52ae63be8cc257e507fb72d
diff --git a/libjingle/examples/call/console.cc b/libjingle/examples/call/console.cc
index a0da2af..0dfdd4b 100644
--- a/libjingle/examples/call/console.cc
+++ b/libjingle/examples/call/console.cc
@@ -29,11 +29,11 @@
#include <assert.h>
-#ifdef POSIX
+#if defined(WEBRTC_POSIX)
#include <signal.h>
#include <termios.h>
#include <unistd.h>
-#endif // POSIX
+#endif // WEBRTC_POSIX
#include "talk/examples/call/callclient.h"
#include "talk/examples/call/console.h"
@@ -41,7 +41,7 @@
#include "webrtc/base/messagequeue.h"
#include "webrtc/base/stringutils.h"
-#ifdef POSIX
+#ifdef WEBRTC_POSIX
static void DoNothing(int unused) {}
#endif
@@ -147,7 +147,7 @@
void Console::OnMessage(rtc::Message *msg) {
switch (msg->message_id) {
case MSG_START:
-#ifdef POSIX
+#if defined(WEBRTC_POSIX)
// Install a no-op signal so that we can abort RunConsole() by raising
// SIGUSR1.
struct sigaction act;