GetFileNameLineNum (LineNum, &FileName, &FileLine);\r
\r
if (mWarningAsError) {\r
- Error (FileName, FileLine, 0x2220, "warning treated as error", NULL);\r
+ Error (FileName, FileLine, 0x2220, (CHAR8 *) "warning treated as error", NULL);\r
}\r
\r
for (Index = 0; mVfrWarningHandleTable[Index].mWarningCode != VFR_WARNING_CODEUNDEFINED; Index++) {\r
/** @file\r
The tool dumps the contents of a firmware volume\r
\r
-Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 1999 - 2015, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#include <string.h>\r
#include <ctype.h>\r
#include <assert.h>\r
+#ifdef __GNUC__\r
+#include <unistd.h>\r
+#endif\r
\r
#include <FvLib.h>\r
#include <Common/UefiBaseTypes.h>\r
);\r
\r
if (ExtractionTool != NULL) {\r
-\r
+ #ifndef __GNUC__\r
ToolInputFile = CloneString (tmpnam (NULL));\r
ToolOutputFile = CloneString (tmpnam (NULL));\r
+ #else\r
+ char tmp1[] = "/tmp/fileXXXXXX";\r
+ char tmp2[] = "/tmp/fileXXXXXX";\r
+ int fd1;\r
+ int fd2;\r
+ fd1 = mkstemp(tmp1);\r
+ fd2 = mkstemp(tmp2);\r
+ ToolInputFile = CloneString(tmp1);\r
+ ToolOutputFile = CloneString(tmp2);\r
+ close(fd1);\r
+ close(fd2);\r
+ #endif\r
\r
//\r
// Construction 'system' command string\r