summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libutil/flopen.c4
-rw-r--r--lib/libutil/libutil.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/libutil/flopen.c b/lib/libutil/flopen.c
index 1eb59a0..687ebac 100644
--- a/lib/libutil/flopen.c
+++ b/lib/libutil/flopen.c
@@ -28,11 +28,15 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include <sys/file.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
+#include <unistd.h>
+
+#include <libutil.h>
int
flopen(const char *path, int flags, ...)
diff --git a/lib/libutil/libutil.h b/lib/libutil/libutil.h
index 4a89856..51ca3d1 100644
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -70,7 +70,7 @@ void clean_environment(const char * const *_white,
const char * const *_more_white);
int extattr_namespace_to_string(int _attrnamespace, char **_string);
int extattr_string_to_namespace(const char *_string, int *_attrnamespace);
-int flopen(const char *_path, int _flags, mode_t _mode);
+int flopen(const char *_path, int _flags, ...);
void login(struct utmp *_ut);
int login_tty(int _fd);
int logout(const char *_line);
OpenPOWER on IntegriCloud