Hi,

stdint.h must be included for uintptr_t at least on Ubuntu Oneiric,
without it ipa-client compilation fails.

Cheers,

-- 
Marko Myllynen
>From 4dc76a92e44daf479f1bd75653611b20ebf35ae4 Mon Sep 17 00:00:00 2001
From: Marko Myllynen <mylly...@redhat.com>
Date: Wed, 21 Sep 2011 15:03:55 +0300
Subject: [PATCH] include <stdint.h> for uintptr_t

---
 daemons/ipa-slapi-plugins/common/util.h |    1 +
 ipa-client/ipa-client-common.h          |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/daemons/ipa-slapi-plugins/common/util.h 
b/daemons/ipa-slapi-plugins/common/util.h
index 8804fbe..eb3ddc0 100644
--- a/daemons/ipa-slapi-plugins/common/util.h
+++ b/daemons/ipa-slapi-plugins/common/util.h
@@ -40,6 +40,7 @@
 #define EOK 0
 #define EFAIL -1
 
+#include <stdint.h>
 #ifndef discard_const
 #define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
 #endif
diff --git a/ipa-client/ipa-client-common.h b/ipa-client/ipa-client-common.h
index b738fb4..e831c59 100644
--- a/ipa-client/ipa-client-common.h
+++ b/ipa-client/ipa-client-common.h
@@ -23,6 +23,7 @@
 #include <libintl.h>
 #define _(STRING) gettext(STRING)
 
+#include <stdint.h>
 #ifndef discard_const
 #define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
 #endif
-- 
1.7.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to