Index: ncgen3/ncgen.l
--- ncgen3/ncgen.l.orig
+++ ncgen3/ncgen.l
@@ -25,8 +25,6 @@
    We include lexical definitions for all three, but use the second version.
 */
 
-extern int fileno(FILE*);
-
 /* lex specification for tokens for ncgen */
 
 /* Fill value used by ncdump from version 2.4 and later.  Should match
