summaryrefslogtreecommitdiff
path: root/source3/include/includes.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-13 19:24:06 +0000
committerJeremy Allison <jra@samba.org>1998-04-13 19:24:06 +0000
commitcac6a060af598bf94e6414b06e7365ec51ca360e (patch)
tree45249e753e580c2d2cb670db1d24ee41701c5285 /source3/include/includes.h
parent47ec2e09b7e1b29e41862916a27f189ba6552582 (diff)
downloadsamba-cac6a060af598bf94e6414b06e7365ec51ca360e.tar.gz
samba-cac6a060af598bf94e6414b06e7365ec51ca360e.tar.bz2
samba-cac6a060af598bf94e6414b06e7365ec51ca360e.zip
Changes to allow Samba to be compiled with -Wstrict-prototypes
with gcc. (Not a big change although it looks like it :-). Jeremy. (This used to be commit cd2613c57261456485fe4eeecfda209ada70de8e)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r--source3/include/includes.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index a1723a55c6..8cc2711e0a 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -521,12 +521,13 @@ char *mktemp(char *); /* No standard include */
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <termios.h>
+#include <fcntl.h>
#if __FreeBSD__ >= 3
#include <dirent.h>
#else
#define USE_DIRECT
#endif
-#define SIGNAL_CAST (void (*)())
+#define SIGNAL_CAST (void (*)(int))
#define USE_SETVBUF
#define USE_SETSID
#define USE_GETCWD
@@ -536,7 +537,15 @@ char *mktemp(char *); /* No standard include */
#define HAVE_GETTIMEOFDAY
#define HAVE_PATHCONF
#define HAVE_GETGRNAM 1
-#endif
+#define QSORT_CAST (int (*)(const void *, const void *))
+#if !defined(O_SYNC)
+#if defined(O_FSYNC)
+#define O_SYNC O_FSYNC
+#else /* defined(O_FSYNC) */
+#define O_SYNC 0
+#endif /* defined(O_FSYNC) */
+#endif /* !defined(O_SYNC) */
+#endif /* FreeBSD */
#ifdef __OpenBSD__
#include <strings.h>