- Lauri
>From 50457a89ac39e1e30c1ecc429503cf9034fcf739 Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Fri, 3 Aug 2012 18:29:28 +0300
Subject: [PATCH 2/2] epoll: Make mk_epoll_state_k properly extern


Signed-off-by: Lauri Kasanen <[email protected]>
---
 src/include/mk_epoll.h |    2 +-
 src/mk_epoll.c         |    2 ++
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/include/mk_epoll.h b/src/include/mk_epoll.h
index 2a66eb6..9d99115 100644
--- a/src/include/mk_epoll.h
+++ b/src/include/mk_epoll.h
@@ -73,7 +73,7 @@ struct epoll_state_index
     struct mk_list av_queue;
 };
 
-pthread_key_t mk_epoll_state_k;
+extern pthread_key_t mk_epoll_state_k;
 
 /* Monkey epoll calls */
 int mk_epoll_create(int max_events);
diff --git a/src/mk_epoll.c b/src/mk_epoll.c
index 3393853..f8c99ee 100644
--- a/src/mk_epoll.c
+++ b/src/mk_epoll.c
@@ -40,6 +40,8 @@
 #include "mk_utils.h"
 #include "mk_macros.h"
 
+pthread_key_t mk_epoll_state_k;
+
 /*
  * Initialize the epoll state index per worker thread, every index struct 
contains
  * a fixed array of epoll_state entries and two mk_list to represent an 
available and
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to