Add missing <fcntl.h> includes

These are required due to the O_* macro usage, but have passed
undetected on glibc-based systems due to implicit inclusions.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
This commit is contained in:
Szabolcs Nagy 2016-03-27 12:37:09 +02:00 committed by Guillem Jover
parent f3b566bd7c
commit cbfe0ebca9
2 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ __FBSDID("$FreeBSD$");
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <unistd.h>
#include <libutil.h>

View File

@ -39,6 +39,7 @@ static char sccsid[] = "@(#)nlist.c 8.1 (Berkeley) 6/4/93";
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <a.out.h>
#include <stdio.h>
#include <string.h>