]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Uefi/compat.c
StdLib: Improve robustness of stat() and make basename() a public function.
[mirror_edk2.git] / StdLib / LibC / Uefi / compat.c
index 7f250d15ff98fe8a325e25e3da481520f55aeb68..8ce4783a6a518ab17ed2fd5844fa0e70f3ac9d1e 100644 (file)
@@ -94,6 +94,7 @@
 #include  <LibConfig.h>\r
 #include  <string.h>\r
 #include  <fcntl.h>\r
+#include  <sys/syslimits.h>\r
 \r
 #ifndef HAVE_GETOPT\r
 char *optarg;\r
@@ -138,11 +139,7 @@ getopt(int argc, char **argv, char *args)
 }\r
 #endif\r
 \r
-#ifdef WIN32\r
 #define ISPATHSEPARATOR(x) ((x == '/') || (x == '\\'))\r
-#else\r
-#define ISPATHSEPARATOR(x) (x == '/')\r
-#endif\r
 \r
 #ifndef HAVE_BASENAME\r
 #ifndef PATH_MAX\r