]> xenbits.xensource.com Git - people/liuw/mini-os.git/commitdiff
minios: fix declaration after code
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 18 Jun 2008 08:35:06 +0000 (09:35 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 18 Jun 2008 08:35:06 +0000 (09:35 +0100)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
include/wait.h

index cbcaab3519482f103194b889356c2748ad69f689..2947d331509d594270532e2bd5ce76c737326025 100644 (file)
@@ -87,9 +87,9 @@ static inline void wake_up(struct wait_queue_head *head)
 
 #define wait_event_deadline(wq, condition, deadline) do {       \
     unsigned long flags;                                        \
+    DEFINE_WAIT(__wait);                                        \
     if(condition)                                               \
         break;                                                  \
-    DEFINE_WAIT(__wait);                                        \
     for(;;)                                                     \
     {                                                           \
         /* protect the list */                                  \