summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-01-27 10:16:07 +0000
committerArthur de Jong <arthur@arthurdejong.org>2008-01-27 10:16:07 +0000
commitdd6518dd55f53cf0058a4992a3856a7527a74299 (patch)
tree4cef30a3863a75cb00e4631740df49cb78901de8
parent132f701f415aedfefd3a54b3c6d8f7d697cd36c3 (diff)
when including stdint.h check if we actually have it
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@571 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--common/tio.c2
-rw-r--r--nslcd-common.h2
-rw-r--r--nslcd/nslcd.c2
-rw-r--r--nss/common.c2
-rw-r--r--tests/test_tio.c2
5 files changed, 10 insertions, 0 deletions
diff --git a/common/tio.c b/common/tio.c
index 6a2244c..8380946 100644
--- a/common/tio.c
+++ b/common/tio.c
@@ -22,7 +22,9 @@
#include "config.h"
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif /* HAVE_STDINT_H */
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
diff --git a/nslcd-common.h b/nslcd-common.h
index 9cc101a..7ada44e 100644
--- a/nslcd-common.h
+++ b/nslcd-common.h
@@ -39,7 +39,9 @@
#ifdef DEBUG_PROT_DUMP
/* define a debugging macro to output detailed logging */
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif /* HAVE_STDINT_H */
static void debug_dump(const void *ptr,size_t size)
{
int i;
diff --git a/nslcd/nslcd.c b/nslcd/nslcd.c
index ac1d941..4c2faf8 100644
--- a/nslcd/nslcd.c
+++ b/nslcd/nslcd.c
@@ -25,7 +25,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif /* HAVE_STDINT_H */
#include <sys/types.h>
#include <sys/param.h>
#include <sys/wait.h>
diff --git a/nss/common.c b/nss/common.c
index 958f09b..2ee3941 100644
--- a/nss/common.c
+++ b/nss/common.c
@@ -22,7 +22,9 @@
#include "config.h"
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif /* HAVE_STDINT_H */
#include <unistd.h>
#include <stdio.h>
#include <sys/socket.h>
diff --git a/tests/test_tio.c b/tests/test_tio.c
index 3e4343b..433fe41 100644
--- a/tests/test_tio.c
+++ b/tests/test_tio.c
@@ -28,7 +28,9 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <pthread.h>
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif /* HAVE_STDINT_H */
#include <stdlib.h>
#include "common/tio.h"