diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-09-30 23:10:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:39:15 -0500 |
commit | ecbf28630ef0fbd91838001e03f8c6d29a8d4232 (patch) | |
tree | 24867d0cd90d0d60b625651b50037e4589efe14e /source4/lib/replace | |
parent | 819eeaef328fcc330700b2626d17c5447ffd3589 (diff) | |
download | samba-ecbf28630ef0fbd91838001e03f8c6d29a8d4232.tar.gz samba-ecbf28630ef0fbd91838001e03f8c6d29a8d4232.tar.xz samba-ecbf28630ef0fbd91838001e03f8c6d29a8d4232.zip |
r10664: Include limits.h in replace.h for HOST_NAME_MAX
(This used to be commit dc3dc796746de672dbf3ad0e4715e8b30ae4afb7)
Diffstat (limited to 'source4/lib/replace')
-rw-r--r-- | source4/lib/replace/replace.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index 3ad348517d9..572113af8cf 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -80,6 +80,14 @@ unsigned long strtoul(const char *nptr, char **endptr, int base); int setenv(const char *name, const char *value, int overwrite); #endif +#ifndef HAVE_RENAME +int rename(const char *zfrom, const char *zto); +#endif + +#ifndef HAVE_FTRUNCATE +int ftruncate(int f,long l); +#endif + #ifndef HAVE_VASPRINTF_DECL int vasprintf(char **ptr, const char *format, va_list ap); #endif @@ -132,13 +140,26 @@ int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3); typedef int (*comparison_fn_t)(const void *, const void *); #endif +/* Load header file for dynamic linking stuff */ #ifdef HAVE_DLFCN_H #include <dlfcn.h> #endif +#ifndef RTLD_LAZY +#define RTLD_LAZY 0 +#endif + #ifndef HAVE_SECURE_MKSTEMP #define mkstemp(path) rep_mkstemp(path) int rep_mkstemp(char *temp); #endif +#ifdef HAVE_LIMITS_H +#include <limits.h> +#endif + +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 64 +#endif + #endif |