diff options
author | Jeremy Allison <jra@samba.org> | 1998-04-13 19:24:06 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-04-13 19:24:06 +0000 |
commit | cd2613c57261456485fe4eeecfda209ada70de8e (patch) | |
tree | 3cdaa41b5ce9c53b4c108ac11febcb59999d9cb5 /source/include/includes.h | |
parent | 883be3907778ee160872b0a0a023fc34e636774f (diff) | |
download | samba-cd2613c57261456485fe4eeecfda209ada70de8e.tar.gz samba-cd2613c57261456485fe4eeecfda209ada70de8e.tar.xz samba-cd2613c57261456485fe4eeecfda209ada70de8e.zip |
Changes to allow Samba to be compiled with -Wstrict-prototypes
with gcc. (Not a big change although it looks like it :-).
Jeremy.
Diffstat (limited to 'source/include/includes.h')
-rw-r--r-- | source/include/includes.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index a1723a55c64..8cc2711e0a3 100644 --- a/source/include/includes.h +++ b/source/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> |