summary refs log blame commit diff
path: root/pkgs/os-specific/linux/splashutils/fdset.patch
blob: 44c61339c4545fb1a08f7b4c99159f53d3ed144d (plain) (tree)



















                                                                             
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>