summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coro.c6
-rw-r--r--coro.h7
2 files changed, 11 insertions, 2 deletions
diff --git a/coro.c b/coro.c
index 0752ec4..0eaa150 100644
--- a/coro.c
+++ b/coro.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001-2005 Marc Alexander Lehmann <schmorp@schmorp.de>
+ * Copyright (c) 2001-2006 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
@@ -49,6 +49,10 @@
# endif
#endif
+#if CORO_UCONTEXT
+# include <stddef.h>
+#endif
+
#if CORO_SJLJ || CORO_LOSER || CORO_LINUX || CORO_IRIX
#include <stdlib.h>
diff --git a/coro.h b/coro.h
index 5f01717..2f2ca93 100644
--- a/coro.h
+++ b/coro.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001-2005 Marc Alexander Lehmann <schmorp@schmorp.de>
+ * Copyright (c) 2001-2006 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
@@ -35,6 +35,11 @@
*
*/
+/*
+ * 2006-10-26 Include stddef.h on OS X to work around one of its bugs.
+ * Reported by Michael_G_Schwern.
+ */
+
#ifndef CORO_H
#define CORO_H