src/hotspot/os/windows/os_windows.hpp
changeset 53369 55cee96fefec
parent 53244 9807daeb47c4
child 53646 043ae846819f
--- a/src/hotspot/os/windows/os_windows.hpp	Thu Jan 10 17:08:44 2019 +0800
+++ b/src/hotspot/os/windows/os_windows.hpp	Thu Jan 17 08:48:11 2019 -0500
@@ -29,6 +29,9 @@
 // strtok_s is the Windows thread-safe equivalent of POSIX strtok_r
 #define strtok_r strtok_s
 
+#define S_ISCHR(mode)   (((mode) & _S_IFCHR) == _S_IFCHR)
+#define S_ISFIFO(mode)  (((mode) & _S_IFIFO) == _S_IFIFO)
+
 // Information about the protection of the page at address '0' on this os.
 static bool zero_page_read_protected() { return true; }