]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
Add missing <fcntl.h> includes
authorSzabolcs Nagy <nsz@port70.net>
Sun, 27 Mar 2016 10:37:09 +0000 (12:37 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sun, 27 Mar 2016 10:42:34 +0000 (12:42 +0200)
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>
src/flopen.c
src/nlist.c

index f5f733816132312bc938d07665c7fd143ab65d8a..b2219881eaf981ad3da10e7fe6f7cee9e68e63d5 100644 (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>
index 3f2c0f83fde72462f52c752b05834360121070b3..0cffe55f7a27b91efa755b70267cec287f4205b4 100644 (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>