Permalink
Browse files

pillowfight.cc: use C linkage for signal handlers

Change-Id: I8447fdf23bbf11d30ca1e49c75a58775f93373b4
Reviewed-on: http://review.couchbase.org/25102
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
1 parent 787cecf commit 85c4e4dea5b18c1629b562c8c24d1a9e20d76e3b @avsej avsej committed with trondn Mar 12, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 example/pillowfight/pillowfight.cc
@@ -588,8 +588,12 @@ static void handle_options(int argc, char **argv)
ThreadContext *ctx = NULL;
static void setup_sigint_handler(void (handler)(int));
-static void cruel_handler(int);
-static void gentle_handler(int);
+
+extern "C" {
+ static void cruel_handler(int);
+ static void gentle_handler(int);
+ static void deaf_handler(int);
+}
static void deaf_handler(int) { }

0 comments on commit 85c4e4d

Please sign in to comment.