Skip to content

Commit

Permalink
Merge pull request #4 from Andrew-He/master
Browse files Browse the repository at this point in the history
Made tiny change on include section to adapt compile on OSX
  • Loading branch information
cloudwu committed May 6, 2016
2 parents 742e87f + 4839fab commit a626303
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion coroutine.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#include "coroutine.h"
#include <stdio.h>
#include <stdlib.h>
#include <ucontext.h>
#include <assert.h>
#include <stddef.h>
#include <string.h>
#include <stdint.h>

#if __APPLE__ && __MACH__
#include <sys/ucontext.h>
#else
#include <ucontext.h>
#endif

#define STACK_SIZE (1024*1024)
#define DEFAULT_COROUTINE 16

Expand Down

0 comments on commit a626303

Please sign in to comment.