Add a shared "port" directory for POSIX functions needed by multiple host tools ...
[reactos.git] / sdk / tools / hhpcomp / chmc / chmc.c
index 934bfba..f96ff11 100644 (file)
 #include <string.h>
 #include <assert.h>
 
-#if defined(_WIN32) || defined(__APPLE__)
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-#ifdef __REACTOS__
-#include <io.h>
-int mkstemps(char* template, int suffix_len);
-#endif /* __REACTOS__ */
+#include "../../port/port.h"
+
+#ifdef _WIN32
+    #include <io.h>
 #else
-#ifdef __REACTOS__
-#include <sys/types.h>
-#include <sys/stat.h>
-#endif /* __REACTOS__ */
-#include <unistd.h>
+    #include <unistd.h>
 #endif
 
 #include "err.h"