summaryrefslogtreecommitdiff
path: root/src/solaris.c
diff options
context:
space:
mode:
authorTodd C. Miller <Todd.Miller@sudo.ws>2020-05-18 06:47:04 -0600
committerTodd C. Miller <Todd.Miller@sudo.ws>2020-05-18 06:47:04 -0600
commit8e729fc1ec50d0adbdfcf2b54084b9a5cd6bf063 (patch)
treeefe4b51b3a26aecee534ed55650b2ddad947acac /src/solaris.c
parent6bb26e3054c44ecce12ac70dff00ee98a3570c57 (diff)
downloadsudo-8e729fc1ec50d0adbdfcf2b54084b9a5cd6bf063.tar.gz
We no longer need to include headers we don't use for sudo*.h files.
Previously we needed to include headers required by the various sudo*h files. Now those files are more self-sufficient and we should only include headers needed by code in the various .c files.
Diffstat (limited to 'src/solaris.c')
-rw-r--r--src/solaris.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/solaris.c b/src/solaris.c
index d5ec8d07d..bfaccea2e 100644
--- a/src/solaris.c
+++ b/src/solaris.c
@@ -23,23 +23,12 @@
#include <config.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdio.h>
-#include <stdlib.h>
-#ifdef HAVE_STRING_H
-# include <string.h>
-#endif /* HAVE_STRING_H */
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif /* HAVE_STRINGS_H */
-#include <unistd.h>
#ifdef HAVE_PROJECT_H
# include <project.h>
# include <sys/task.h>
+# include <errno.h>
+# include <pwd.h>
#endif
-#include <errno.h>
-#include <pwd.h>
#include "sudo.h"
#include "sudo_dso.h"