Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Apr 1997 18:11:30 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        asami@vader.cs.berkeley.edu, paul@freefall.freebsd.org
Cc:        cvs-all@freebsd.org, CVS-committers@freefall.freebsd.org, cvs-ports@freebsd.org
Subject:   Re: cvs commit:  ports/www/analog/patches patch-ac
Message-ID:  <199704200811.SAA16073@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
> *   Added:       www/analog/patches  patch-ac
> *   Log:
> *   Move the <dirent.h> include to after <sys/types.h> or it won't compile.
>
>Is this compatible with both 2.2 and 3.0 systems?  (> Bruce, I guess.)

It shouldn't have compiled in 2.2 without this change - <dirent.h> depends
on <sys/types.h> in 2.2 (although not in 2.1).  It did compile in 2.2
because it includes <stdio.h> earlier and <stdio.h> bogusly supplied
<sys/types.h>.  It is not uncommon for programs to include <stdio.h>
first even in modules that don't use stdio, just to pick up cruft from
pre-ANSI <stdio.h>'s.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704200811.SAA16073>