summaryrefslogtreecommitdiffstats
path: root/source/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-12-30 20:51:43 +0000
committerJeremy Allison <jra@samba.org>1998-12-30 20:51:43 +0000
commit2afb300f08cb9f28289f024730e901276a2363f1 (patch)
tree43a52250067c3ed3a766f6835eef529b5e7dc642 /source/include
parentd5dc72bc89f72175ee23e27dceb4f15d5c7a46bc (diff)
downloadsamba-2afb300f08cb9f28289f024730e901276a2363f1.tar.gz
samba-2afb300f08cb9f28289f024730e901276a2363f1.tar.xz
samba-2afb300f08cb9f28289f024730e901276a2363f1.zip
client/client.c: Fixed comment.
All others - added checks for the compiler understanding volatile and the system having sig_atomic_t. Changed sighup code to use this. Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r--source/include/config.h.in2
-rw-r--r--source/include/includes.h20
2 files changed, 22 insertions, 0 deletions
diff --git a/source/include/config.h.in b/source/include/config.h.in
index eae51a25120..38162b12406 100644
--- a/source/include/config.h.in
+++ b/source/include/config.h.in
@@ -58,6 +58,7 @@
byte first (like Motorola and SPARC, unlike Intel and VAX). */
#undef WORDS_BIGENDIAN
+#undef HAVE_VOLATILE
#undef HAVE_BROKEN_READDIR
#undef HAVE_ERRNO_DECL
#undef HAVE_LONGLONG
@@ -65,6 +66,7 @@
#undef HAVE_REMSH
#undef HAVE_UNSIGNED_CHAR
#undef HAVE_UTIMBUF
+#undef HAVE_SIG_ATOMIC_T_TYPE
#undef ssize_t
#undef ino_t
#undef ssize_t
diff --git a/source/include/includes.h b/source/include/includes.h
index a8c3f68203e..a811731c302 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -330,6 +330,26 @@
#endif
#endif /* HAVE_NETGROUP */
+/*
+ * Define VOLATILE if needed.
+ */
+
+#if defined(HAVE_VOLATILE)
+#define VOLATILE volatile
+#else
+#define VOLATILE
+#endif
+
+/*
+ * Define SIG_ATOMIC_T if needed.
+ */
+
+#if defined(HAVE_SIG_ATOMIC_T_TYPE)
+#define SIG_ATOMIC_T sig_atomic_t
+#else
+#define SIG_ATOMIC_T int
+#endif
+
#ifndef uchar
#define uchar unsigned char
#endif