aboutsummaryrefslogtreecommitdiff
path: root/tccpe.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpe.c')
-rw-r--r--tccpe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tccpe.c b/tccpe.c
index b846c11..4dec1d8 100644
--- a/tccpe.c
+++ b/tccpe.c
@@ -1638,9 +1638,9 @@ static int pe_load_dll(TCCState *s1, const char *dllname, FILE *fp)
}
/* ------------------------------------------------------------- */
-ST_FUNC int pe_load_file(struct TCCState *s1, const char *filename, vio_fd fd)
+ST_FUNC int pe_load_file(struct TCCState *s1, const char *filename, int fd)
{
- FILE *fp = fdopen(dup(fd.fd), "rb");
+ FILE *fp = fdopen(dup(fd), "rb");
int ret = -1;
char buf[10];
if (fp) {