diff options
author | Todd C. Miller <Todd.Miller@courtesan.com> | 2015-05-21 11:07:13 -0600 |
---|---|---|
committer | Todd C. Miller <Todd.Miller@courtesan.com> | 2015-05-21 11:07:13 -0600 |
commit | bc2ff0194a815c2fbec422cba150a04360f6df0b (patch) | |
tree | 9f5f08c1794d790d2dad72a5ac848ae8a8028a0c /src/selinux.c | |
parent | 248a1c7335b5ca7e1bb70443a74ee17865aa7895 (diff) | |
download | sudo-bc2ff0194a815c2fbec422cba150a04360f6df0b.tar.gz |
Add target for "make splint". A few files need extra guards to avoid
errors on systems where they would not otherwise be compiled.
No warnings from splint.
Diffstat (limited to 'src/selinux.c')
-rw-r--r-- | src/selinux.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/selinux.c b/src/selinux.c index c459ccfa4..af3c2b06f 100644 --- a/src/selinux.c +++ b/src/selinux.c @@ -26,6 +26,8 @@ #include <config.h> +#ifdef HAVE_SELINUX + #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> @@ -418,3 +420,5 @@ selinux_execve(const char *path, char *const argv[], char *const envp[], errno = serrno; debug_return; } + +#endif /* HAVE_SELINUX */ |