[SSSD] [PATCH] Fix sudo compilation on RHEL5

Jakub Hrozek jhrozek at redhat.com
Sun Jan 29 22:12:01 UTC 2012


The glibc headers probably changed between recent Fedora releases and
RHEL5 resulting in compilation errors on RHEL5 when building with sudo
support.

The attached patch adds two missing includes in the sudo code and one in
the sss client that was triggered by adding sudo support.
-------------- next part --------------
From 8841888c0b75717be9007df0576cb4e3842199b4 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Fri, 27 Jan 2012 11:52:51 -0500
Subject: [PATCH] Fix sudo compilation on RHEL5

---
 src/responder/sudo/sudosrv_get_sudorules.c |    2 ++
 src/sss_client/sss_cli.h                   |    1 +
 src/sss_client/sudo/sss_sudo_response.c    |    2 ++
 3 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/responder/sudo/sudosrv_get_sudorules.c b/src/responder/sudo/sudosrv_get_sudorules.c
index b7e17056fb0eb2ae10efde2d9c37ce19de573b62..8cb10e9aa336ce0c29aa3bef9efd90f695209bb9 100644
--- a/src/responder/sudo/sudosrv_get_sudorules.c
+++ b/src/responder/sudo/sudosrv_get_sudorules.c
@@ -19,6 +19,8 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include "config.h"
+
 #include <stdint.h>
 #include <string.h>
 #include <talloc.h>
diff --git a/src/sss_client/sss_cli.h b/src/sss_client/sss_cli.h
index 30a238ec7eb9c8e38b1a724df60fea1b15a8831b..dc137dc439ce6c9fa84fab31c9c74c8fb77139a1 100644
--- a/src/sss_client/sss_cli.h
+++ b/src/sss_client/sss_cli.h
@@ -29,6 +29,7 @@
 #include <pwd.h>
 #include <grp.h>
 #include <string.h>
+#include <stdint.h>
 #include <limits.h>
 
 #ifndef HAVE_ERRNO_T
diff --git a/src/sss_client/sudo/sss_sudo_response.c b/src/sss_client/sudo/sss_sudo_response.c
index 2b158b7de320b380e20983722e83dcddc572110f..f3e250cd82a50cb69d2e71f432fe1d1760388542 100644
--- a/src/sss_client/sudo/sss_sudo_response.c
+++ b/src/sss_client/sudo/sss_sudo_response.c
@@ -18,6 +18,8 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include "config.h"
+
 #include <stdlib.h>
 #include <errno.h>
 #include <string.h>
-- 
1.7.7.5



More information about the sssd-devel mailing list