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>
diff --git a/src/flopen.c b/src/flopen.c
index f5f7338..b221988 100644
--- a/src/flopen.c
+++ b/src/flopen.c
@@ -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>
diff --git a/src/nlist.c b/src/nlist.c
index 3f2c0f8..0cffe55 100644
--- a/src/nlist.c
+++ b/src/nlist.c
@@ -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>