From b16912da1d815dac1cf24a5ac934dc77f369867f Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 8 Dec 2017 15:00:41 -0700 Subject: [PATCH] Don't include syslog.h from logging.h, just include it in the two .c files it is actually needed. --- plugins/sudoers/defaults.c | 1 + plugins/sudoers/logging.c | 3 ++- plugins/sudoers/logging.h | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) 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 -- 2.40.0