opendoas

A portable version of the OpenBSD `doas` command
git clone https://pi.duncano.de/git/opendoas.git
Log | Files | Refs | README | LICENSE

commit e1f898280487cd0972021b8e6a937f9597cb6ce9
parent 5dd49ecf1ae77ffad2e4d0aa2a052d97356fad89
Author: Nathan Holstein <nathan.holstein@gmail.com>
Date:   Sun,  2 Aug 2015 12:12:34 -0400

Header file revamp to build on MacOSX.

Diffstat:
doas.c | 4++--
parse.y | 9++++++---
2 files changed, 8 insertions(+), 5 deletions(-)

diff --git 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 @@ -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"