From: Todd C. Miller Date: Fri, 8 Dec 2017 22:00:41 +0000 (-0700) Subject: Don't include syslog.h from logging.h, just include it in the two X-Git-Tag: SUDO_1_8_22^2~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b16912da1d815dac1cf24a5ac934dc77f369867f;p=sudo Don't include syslog.h from logging.h, just include it in the two .c files it is actually needed. --- diff --git a/plugins/sudoers/defaults.c b/plugins/sudoers/defaults.c index 275d4bbc7..77687a523 100644 --- a/plugins/sudoers/defaults.c +++ b/plugins/sudoers/defaults.c @@ -34,6 +34,7 @@ #include #include #include +#include #include "sudoers.h" #include "parse.h" diff --git a/plugins/sudoers/logging.c b/plugins/sudoers/logging.c index 2aee016be..31298658a 100644 --- a/plugins/sudoers/logging.c +++ b/plugins/sudoers/logging.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1994-1996, 1998-2016 Todd C. Miller + * Copyright (c) 1994-1996, 1998-2017 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -47,6 +47,7 @@ #include #include #include +#include #include "sudoers.h" diff --git a/plugins/sudoers/logging.h b/plugins/sudoers/logging.h index 6a72b3ef7..08202b333 100644 --- a/plugins/sudoers/logging.h +++ b/plugins/sudoers/logging.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2005, 2009-2014 + * Copyright (c) 1999-2005, 2009-2017 * Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any @@ -18,7 +18,6 @@ #ifndef SUDOERS_LOGGING_H #define SUDOERS_LOGGING_H -#include #ifdef __STDC__ # include #else