mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
2261f6d265
svn path=/nixpkgs/trunk/; revision=8582
21 lines
363 B
Diff
21 lines
363 B
Diff
diff --git a/core/render.c b/core/render.c
|
|
index 290ea97..47319a8 100644
|
|
--- a/render.c
|
|
+++ b/render.c
|
|
@@ -9,8 +9,15 @@
|
|
*
|
|
*/
|
|
|
|
+/*
|
|
+ * HACK WARNING:
|
|
+ * This is necessary to get FD_SET and FD_ZERO on platforms other than x86.
|
|
+ */
|
|
+
|
|
#ifdef TARGET_KERNEL
|
|
+#define __KERNEL__
|
|
#include <linux/posix_types.h>
|
|
+#undef __KERNEL__
|
|
#endif
|
|
|
|
#include <stdio.h>
|