summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 899c9f3a42..32f8429345 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -372,15 +372,17 @@
#endif
/*
- * Define SIG_ATOMIC_T if needed.
+ * Define additional missing types
*/
+#ifndef HAVE_SIG_ATOMIC_T_TYPE
+typedef int sig_atomic_t;
+#endif
-#if defined(HAVE_SIG_ATOMIC_T_TYPE)
-#define SIG_ATOMIC_T sig_atomic_t
-#else
-#define SIG_ATOMIC_T int
+#ifndef HAVE_SOCKLEN_T_TYPE
+typedef int socklen_t;
#endif
+
#ifndef uchar
#define uchar unsigned char
#endif