aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Holstein <nathan.holstein@gmail.com>2015-08-02 12:12:34 -0400
committerNathan Holstein <nathan.holstein@gmail.com>2015-08-05 08:49:21 -0400
commite1f898280487cd0972021b8e6a937f9597cb6ce9 (patch)
treeb6bb23576ffe56ea8d726989392789d7d84d673b
parent5dd49ecf1ae77ffad2e4d0aa2a052d97356fad89 (diff)
downloadopendoas-e1f898280487cd0972021b8e6a937f9597cb6ce9.tar.gz
Header file revamp to build on MacOSX.
-rw-r--r--doas.c4
-rw-r--r--parse.y9
2 files changed, 8 insertions, 5 deletions
diff --git a/doas.c b/doas.c
index 7a525e6..eda11b3 100644
--- a/doas.c
+++ b/doas.c
@@ -19,8 +19,6 @@
#include <sys/stat.h>
#include <limits.h>
-#include <login_cap.h>
-#include <bsd_auth.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@@ -31,6 +29,8 @@
#include <syslog.h>
#include <errno.h>
+#include "openbsd.h"
+
#include "doas.h"
static void __dead
diff --git a/parse.y b/parse.y
index ee5f11d..7454f85 100644
--- a/parse.y
+++ b/parse.y
@@ -18,12 +18,15 @@
%{
#include <sys/types.h>
#include <ctype.h>
-#include <unistd.h>
-#include <stdint.h>
+#include <err.h>
#include <stdarg.h>
#include <stdio.h>
+#include <stdint.h>
+#include <stdlib.h>
#include <string.h>
-#include <err.h>
+#include <unistd.h>
+
+#include "openbsd.h"
#include "doas.h"