[SSSD] [PATCH] Include config.h to build io.c on RHEL5

Jakub Hrozek jhrozek at redhat.com
Mon Mar 25 10:40:54 UTC 2013


This two-liner makes SSSD build on oldish platforms such as RHEL5 that
required _GNU_SOURCE to be defined in order to have openat defined.

While I don't plan on making a concentrated effort to keep supporting
RHEL5, this is a two liner patch and I think it was worth the time.
-------------- next part --------------
>From 479e7adb4bf7f9511014b276cc4824a5dd285e28 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek at redhat.com>
Date: Mon, 25 Mar 2013 11:31:11 +0100
Subject: [PATCH] Include config.h to build io.c on RHEL5

---
 src/util/io.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/util/io.c b/src/util/io.c
index 4d1f2e74a1607bf7f6a8977ca97455185eba7403..6fd7744d30eff6180ac4097af486df96b29d0d4c 100644
--- a/src/util/io.c
+++ b/src/util/io.c
@@ -22,6 +22,8 @@
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
+#include "config.h"
+
 #include <unistd.h>
 #include <fcntl.h>
 #include <errno.h>
-- 
1.8.1.4



More information about the sssd-devel mailing list