diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c index e6e71e9c43d..3c5984a7188 100644 --- a/sys/compat/linux/linux_file.c +++ b/sys/compat/linux/linux_file.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_file.c,v 1.12 1997/03/24 11:24:29 bde Exp $ + * $Id: linux_file.c,v 1.13 1997/04/05 14:50:56 dfr Exp $ */ #include @@ -35,17 +35,12 @@ #include #include #include -#include #include #include -#include #include -#include #include #include -#include - #include #include #include @@ -447,6 +442,7 @@ linux_getdents(struct proc *p, struct linux_getdents_args *args, int *retval) justone = 0; off = fp->f_offset; +#define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ buflen = max(DIRBLKSIZ, nbytes); buflen = min(buflen, MAXBSIZE); buf = malloc(buflen, M_TEMP, M_WAITOK); diff --git a/sys/i386/linux/linux_file.c b/sys/i386/linux/linux_file.c index e6e71e9c43d..3c5984a7188 100644 --- a/sys/i386/linux/linux_file.c +++ b/sys/i386/linux/linux_file.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_file.c,v 1.12 1997/03/24 11:24:29 bde Exp $ + * $Id: linux_file.c,v 1.13 1997/04/05 14:50:56 dfr Exp $ */ #include @@ -35,17 +35,12 @@ #include #include #include -#include #include #include -#include #include -#include #include #include -#include - #include #include #include @@ -447,6 +442,7 @@ linux_getdents(struct proc *p, struct linux_getdents_args *args, int *retval) justone = 0; off = fp->f_offset; +#define DIRBLKSIZ 512 /* XXX we used to use ufs's DIRBLKSIZ */ buflen = max(DIRBLKSIZ, nbytes); buflen = min(buflen, MAXBSIZE); buf = malloc(buflen, M_TEMP, M_WAITOK);