a few more porting fixes
Modified: trunk/reactos/lib/crt/include/internal/file.h
Modified: trunk/reactos/lib/crt/process/threadid.c

Modified: trunk/reactos/lib/crt/include/internal/file.h
--- trunk/reactos/lib/crt/include/internal/file.h	2005-11-30 07:36:08 UTC (rev 19771)
+++ trunk/reactos/lib/crt/include/internal/file.h	2005-11-30 08:01:56 UTC (rev 19772)
@@ -148,6 +148,9 @@
 #define  _IORW 0x0080 /* opened as "r+w" */
 #endif
 
+#ifndef F_OK
+#define	F_OK	0	/* Check for file existence */
+#endif
 #ifndef W_OK
 #define	W_OK	2	/* Check for write permission */
 #endif

Modified: trunk/reactos/lib/crt/process/threadid.c
--- trunk/reactos/lib/crt/process/threadid.c	2005-11-30 07:36:08 UTC (rev 19771)
+++ trunk/reactos/lib/crt/process/threadid.c	2005-11-30 08:01:56 UTC (rev 19772)
@@ -13,7 +13,7 @@
 /*
  * @implemented
  */
-void *__threadhandle(void)
+uintptr_t __threadhandle()
 {
-   return GetCurrentThread();
+   return (uintptr_t)GetCurrentThread();
 }