Revision 5805c339 loop.c

View differences:

loop.c
29 29
static struct timeval period = {0, 500000};
30 30
static struct timeval tnext;
31 31

  
32
#ifdef HTTPIO
32
#ifdef HTTPIO_MHD
33 33
extern pthread_mutex_t cb_mutex;
34 34
#endif
35 35

  
......
146 146
      switch (buff[0] /* Message Type */) {
147 147
        case MSG_TYPE_TOPOLOGY:
148 148
          fprintf(stderr, "Top Parse\n");
149
#ifdef HTTPIO
149
#ifdef HTTPIO_MHD
150 150
          pthread_mutex_lock(&cb_mutex);
151 151
#endif
152 152
          update_peers(remote, buff, len);
153
#ifdef HTTPIO
153
#ifdef HTTPIO_MHD
154 154
          pthread_mutex_unlock(&cb_mutex);
155 155
#endif
156 156
          break;
......
158 158
          fprintf(stderr, "Some dumb peer pushed a chunk to me! peer:%s\n",node_addr(remote));
159 159
          break;
160 160
        case MSG_TYPE_SIGNALLING:
161
#ifdef HTTPIO
161
#ifdef HTTPIO_MHD
162 162
          pthread_mutex_lock(&cb_mutex);
163 163
#endif
164 164
          sigParseData(remote, buff, len);
165
#ifdef HTTPIO
165
#ifdef HTTPIO_MHD
166 166
          pthread_mutex_unlock(&cb_mutex);
167 167
#endif
168 168
          break;

Also available in: Unified diff