mirror of
https://github.com/openbsd/src.git
synced 2024-12-22 07:27:59 -08:00
grep: Add missing unistd.h and limits.h includes
Both binary.c and file.c currently pull in unistd.h via zlib's zconf.h. binary.c uses SEEK_SET and file.c a bunch of things like close(), isatty(), lseek(). In addition file.c needs limits.h for PATH_MAX. ok deraadt
This commit is contained in:
parent
8140105029
commit
75891f45ba
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: binary.c,v 1.19 2021/03/10 21:55:22 millert Exp $ */
|
||||
/* $OpenBSD: binary.c,v 1.20 2021/12/15 19:22:44 tb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
|
||||
@ -30,6 +30,7 @@
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "grep.h"
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: file.c,v 1.16 2021/03/10 21:55:22 millert Exp $ */
|
||||
/* $OpenBSD: file.c,v 1.17 2021/12/15 19:22:44 tb Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav
|
||||
@ -30,8 +30,10 @@
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "grep.h"
|
||||
|
Loading…
Reference in New Issue
Block a user