$NetBSD: patch-linux_PlatformDefs.h,v 1.1 2015/01/18 23:09:25 jmcneill Exp $ --- linux/PlatformDefs.h.orig 2015-01-12 15:10:50.000000000 +0000 +++ linux/PlatformDefs.h @@ -39,11 +39,11 @@ #include #include #include -#ifdef __APPLE__ +#if defined(__APPLE__) #include #include #include -#else +#elif defined(__linux__) #include #endif #include @@ -416,8 +416,12 @@ typedef struct _SECURITY_ATTRIBUTES { #define FILE_CURRENT 1 #define FILE_END 2 +#ifndef _S_IFREG #define _S_IFREG S_IFREG +#endif +#ifndef _S_IFDIR #define _S_IFDIR S_IFDIR +#endif #define MAX_PATH PATH_MAX #define _stat stat