From: nu774 Date: Fri, 25 Oct 2013 01:25:33 +0000 (+0900) Subject: fix build issue on platform where fileno is a naive macro X-Git-Tag: v0.4.1~7 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=f48bf1294c7fedb71ba8f3ad5706445b63073195;p=fdkaac.git fix build issue on platform where fileno is a naive macro --- diff --git a/src/main.c b/src/main.c index d8ee02d..952cfbc 100644 --- a/src/main.c +++ b/src/main.c @@ -669,7 +669,7 @@ pcm_reader_t *open_input(aacenc_param_ex_t *params) goto END; } io.cookie = params->input_fp; - if (fstat(fileno(io.cookie), &stb) == 0 + if (fstat(fileno(params->input_fp), &stb) == 0 && (stb.st_mode & S_IFMT) == S_IFREG) io.vtbl = &pcm_io_vtbl; else