diff options
author | Jeremy Allison <jra@samba.org> | 1998-08-15 01:19:26 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-08-15 01:19:26 +0000 |
commit | e13aeea928dd89373cfaf3916c96f853c1227884 (patch) | |
tree | 73b9506b9736b1e6a3a4117d6c54223250ea7d66 /source3/include | |
parent | b9623ab59e813131b1ed3f51616a46e719d59c21 (diff) | |
download | samba-e13aeea928dd89373cfaf3916c96f853c1227884.tar.gz samba-e13aeea928dd89373cfaf3916c96f853c1227884.tar.bz2 samba-e13aeea928dd89373cfaf3916c96f853c1227884.zip |
configure: Changes for extra headers.
configure.in: Source for header changes.
client/clitar.c: Fixed isXXX macros & debugs for gcc pedantic compile.
include/config.h.in: Added MEMSET, BZERO, MEMORY, RPCSVC_YPCLNT, STRINGS headers.
include/includes.h: Headers for the above.
include/smb.h: Made SIGNAL_CAST POSIX by default void (*)(int).
lib/access.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/charset.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/debug.c: Fixed signal functs.
lib/kanji.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/smbrun.c: Fixed isXXX macros & debugs for gcc pedantic compile.
lib/util.c: Fixed isXXX macros & debugs for gcc pedantic compile.
libsmb/namequery.c: Fixed isXXX macros & debugs for gcc pedantic compile.
locking/shmem.c: Fixed isXXX macros & debugs for gcc pedantic compile.
locking/shmem_sysv.c: Fixed error messages in sysV stuff.
nmbd/asyncdns.c: Fixed signal functs.
nmbd/nmbd.c: Fixed isXXX macros & debugs for gcc pedantic compile.
passdb/passdb.c: Fixed isXXX macros & debugs for gcc pedantic compile.
passdb/smbpassfile.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/chgpasswd.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/ipc.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/nttrans.c: Fixed fsp code path.
smbd/password.c: fixed HAVE_YP_GET_DEFAULT_DOMAIN problem.
smbd/printing.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/reply.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/server.c: Fixed isXXX macros & debugs for gcc pedantic compile.
smbd/trans2.c: Fixed core dump bug.
smbd/uid.c: Fixed isXXX macros & debugs for gcc pedantic compile.
Jeremy.
(This used to be commit 1b9cbcd02e575dc0a95fa589f720df30a4acc46b)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/config.h.in | 15 | ||||
-rw-r--r-- | source3/include/includes.h | 16 | ||||
-rw-r--r-- | source3/include/proto.h | 4 | ||||
-rw-r--r-- | source3/include/smb.h | 2 |
4 files changed, 34 insertions, 3 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in index ced68aa762..d3968452c3 100644 --- a/source3/include/config.h.in +++ b/source3/include/config.h.in @@ -127,6 +127,9 @@ /* Define if you have the bigcrypt function. */ #undef HAVE_BIGCRYPT +/* Define if you have the bzero function. */ +#undef HAVE_BZERO + /* Define if you have the chmod function. */ #undef HAVE_CHMOD @@ -190,6 +193,9 @@ /* Define if you have the memmove function. */ #undef HAVE_MEMMOVE +/* Define if you have the memset function. */ +#undef HAVE_MEMSET + /* Define if you have the mktime function. */ #undef HAVE_MKTIME @@ -286,6 +292,9 @@ /* Define if you have the <limits.h> header file. */ #undef HAVE_LIMITS_H +/* Define if you have the <memory.h> header file. */ +#undef HAVE_MEMORY_H + /* Define if you have the <ndir.h> header file. */ #undef HAVE_NDIR_H @@ -310,6 +319,9 @@ /* Define if you have the <string.h> header file. */ #undef HAVE_STRING_H +/* Define if you have the <strings.h> header file. */ +#undef HAVE_STRINGS_H + /* Define if you have the <sys/dir.h> header file. */ #undef HAVE_SYS_DIR_H @@ -346,6 +358,9 @@ /* Define if you have the <sys/param.h> header file. */ #undef HAVE_SYS_PARAM_H +/* Define if you have the <rpcsvc/ypclnt.h> header file. */ +#undef HAVE_RPCSVC_YPCLNT_H + /* Define if you have the <sys/security.h> header file. */ #undef HAVE_SYS_SECURITY_H diff --git a/source3/include/includes.h b/source3/include/includes.h index 237251209a..42ec579692 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -71,6 +71,14 @@ #include <string.h> #endif +#ifdef HAVE_STRINGS_H +#include <strings.h> +#endif + +#ifdef HAVE_MEMORY_H +#include <memory.h> +#endif + #ifdef HAVE_MALLOC_H #include <malloc.h> #endif @@ -241,6 +249,10 @@ #include <compat.h> #endif +#ifdef HAVE_RPCSVC_YPCLNT_H +#include <rpcsvc/ypclnt.h> +#endif + #ifndef uchar #define uchar unsigned char #endif @@ -470,4 +482,8 @@ int setresuid(uid_t ruid, uid_t euid, uid_t suid); int setresgid(gid_t rgid, gid_t egid, gid_t sgid); #endif +#if !defined(HAVE_BZERO) && defined(HAVE_MEMSET) +#define bzero(a,b) memset((a),'\0',(b)) +#endif + #endif /* _INCLUDES_H */ diff --git a/source3/include/proto.h b/source3/include/proto.h index 1cab9c5e9d..74e240cfa3 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -63,8 +63,8 @@ void add_char_string(char *s); /*The following definitions come from lib/debug.c */ -int sig_usr2( void ); -int sig_usr1( void ); +void sig_usr2( int sig ); +void sig_usr1( int sig ); void setup_logging( char *pname, BOOL interactive ); void reopen_logs( void ); void force_check_log_size( void ); diff --git a/source3/include/smb.h b/source3/include/smb.h index b060134d8e..fa5d496ceb 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1274,7 +1274,7 @@ char *strdup(char *s); #endif #ifndef SIGNAL_CAST -#define SIGNAL_CAST (RETSIGTYPE (*)()) +#define SIGNAL_CAST (RETSIGTYPE (*)(int)) #endif #ifndef SELECT_CAST |