summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"