summaryrefslogtreecommitdiff
path: root/Tools/CCode/Source/GenBsfImage
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-31 06:45:53 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-10-31 06:45:53 +0000
commit4961f50cc4c4f673132827b44ed4517ec119f833 (patch)
tree91d84f0d977346d4362089c2514e3d4b09582beb /Tools/CCode/Source/GenBsfImage
parentdea981755aba759ab17ede3f7e1d60944f79c5df (diff)
downloadedk2-4961f50cc4c4f673132827b44ed4517ec119f833.zip
edk2-4961f50cc4c4f673132827b44ed4517ec119f833.tar.gz
edk2-4961f50cc4c4f673132827b44ed4517ec119f833.tar.bz2
Fix for linux builds
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1873 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/CCode/Source/GenBsfImage')
-rw-r--r--Tools/CCode/Source/GenBsfImage/GenBsfImage.c14
-rw-r--r--Tools/CCode/Source/GenBsfImage/GenBsfImage.h1
2 files changed, 7 insertions, 8 deletions
diff --git a/Tools/CCode/Source/GenBsfImage/GenBsfImage.c b/Tools/CCode/Source/GenBsfImage/GenBsfImage.c
index 59d20d0..494f349 100644
--- a/Tools/CCode/Source/GenBsfImage/GenBsfImage.c
+++ b/Tools/CCode/Source/GenBsfImage/GenBsfImage.c
@@ -1160,7 +1160,7 @@ Returns:
return EFI_ABORTED;
}
- FileSize = _filelength (_fileno (Fp));
+ FileSize = _filelength (fileno (Fp));
if ((BsfInfo->CompType == COMP_TYPE_FIT_PAL_B) || (BsfInfo->CompType == COMP_TYPE_FIT_PAL_A_SPECIFIC)) {
@@ -1334,7 +1334,7 @@ Returns:
return EFI_ABORTED;
}
- FileSize = _filelength (_fileno (Fp));
+ FileSize = _filelength (fileno (Fp));
FileSize -= SIZE_OF_PAL_HEADER;
if (BsfInfo->PreferredSize) {
@@ -1752,7 +1752,7 @@ Returns:
printf ("\nERROR: Unable to open the file %s", FileName);
}
- FileSize = _filelength (_fileno (Fp));
+ FileSize = _filelength (fileno (Fp));
if (FileSize > 16) {
return EFI_ABORTED;
@@ -2145,7 +2145,7 @@ Returns:
return EFI_ABORTED;
}
- FirstFwVSize = _filelength (_fileno (Fp));
+ FirstFwVSize = _filelength (fileno (Fp));
fseek (Fp, (long) (FirstFwVSize - (UINTN) (SIZE_IA32_RESET_VECT + SIZE_SALE_ENTRY_POINT)), SEEK_SET);
NumByte = fwrite ((VOID *) StartAddressPtr, sizeof (UINT64), 1, Fp);
@@ -2862,7 +2862,7 @@ Returns:
return EFI_ABORTED;
}
- *BsfSize += _filelength (_fileno (Fp));
+ *BsfSize += _filelength (fileno (Fp));
if (Fp) {
fclose (Fp);
@@ -2985,7 +2985,7 @@ Returns:
return EFI_ABORTED;
}
- FileSize = _filelength (_fileno (Fp));
+ FileSize = _filelength (fileno (Fp));
if (BsfInfo->PreferredSize) {
if (FileSize > BsfInfo->CompSize) {
@@ -3082,7 +3082,7 @@ Returns:
return EFI_ABORTED;
}
- FileSize = _filelength (_fileno (Fp));
+ FileSize = _filelength (fileno (Fp));
if (BsfInfo->PreferredSize) {
if (FileSize > BsfInfo->CompSize) {
diff --git a/Tools/CCode/Source/GenBsfImage/GenBsfImage.h b/Tools/CCode/Source/GenBsfImage/GenBsfImage.h
index 1efbebc..63db121 100644
--- a/Tools/CCode/Source/GenBsfImage/GenBsfImage.h
+++ b/Tools/CCode/Source/GenBsfImage/GenBsfImage.h
@@ -33,7 +33,6 @@ Abstract:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <io.h>
#include "assert.h"
// #include "TianoCommon.h"
#include "Common/FirmwareFileSystem.h"