diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-07 07:55:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-07 07:55:14 +0000 |
commit | d836bedb4035acc61e83f1a0dc76df2c33dfc8af (patch) | |
tree | 5e320eb1118f6d35ec78d5f62a04f3c885968f83 /source3/include | |
parent | d2856b2dab5440e184be8d96807a08ce211f39ab (diff) | |
download | samba-d836bedb4035acc61e83f1a0dc76df2c33dfc8af.tar.gz samba-d836bedb4035acc61e83f1a0dc76df2c33dfc8af.tar.bz2 samba-d836bedb4035acc61e83f1a0dc76df2c33dfc8af.zip |
more OSF1 changes as well as changes to allow us to use the standard
includes.h in wrapped.c, thus making porting much simpler
(This used to be commit 6f2239c935fdecfefa89227c113df01e3957691a)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/config.h.in | 1 | ||||
-rw-r--r-- | source3/include/includes.h | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/source3/include/config.h.in b/source3/include/config.h.in index 21bad4bc78..020fe0a7c7 100644 --- a/source3/include/config.h.in +++ b/source3/include/config.h.in @@ -129,6 +129,7 @@ #undef HAVE_IRIX_SPECIFIC_CAPABILITIES #undef KRB4_AUTH #undef SEEKDIR_RETURNS_VOID +#undef HAVE_DIRENT_D_OFF /* The number of bytes in a int. */ #undef SIZEOF_INT diff --git a/source3/include/includes.h b/source3/include/includes.h index be41db4d43..c9a5e8b271 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -24,6 +24,20 @@ #ifndef NO_CONFIG_H /* for some tests */ #include "config.h" #endif + +#ifdef NO_PROTO +/* get rid of prototypes for smbwrapper */ +#define _NO_PROTO + +#ifdef HAVE_SYS_CDEFS_H +#include <sys/cdefs.h> +#ifdef __P +#undef __P +#define __P(x) () +#endif +#endif +#endif + #include "local.h" #ifdef AIX @@ -80,6 +94,12 @@ #include <sys/socket.h> #endif +#ifdef HAVE_SYS_SYSCALL_H +#include <sys/syscall.h> +#elif HAVE_SYSCALL_H +#include <syscall.h> +#endif + #ifdef HAVE_STRING_H #include <string.h> #endif @@ -671,4 +691,7 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid); #define getpass(prompt) getsmbpass((prompt)) #endif +/* yuck, I'd like a better way of doing this */ +#define DIRP_SIZE (256 + 32) + #endif /* _INCLUDES_H */ |