diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-04-15 20:12:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:19:21 -0500 |
commit | 2f1aafa2a7e36298cc1e0e593b30fac1ab278596 (patch) | |
tree | 80803c500daca5d859afeea4917f859a71d577a5 /source3/lib/replace/replace.h | |
parent | 3e819bd22c199f9cdf68c0f6258b4be17674a129 (diff) | |
download | samba-2f1aafa2a7e36298cc1e0e593b30fac1ab278596.tar.gz samba-2f1aafa2a7e36298cc1e0e593b30fac1ab278596.tar.bz2 samba-2f1aafa2a7e36298cc1e0e593b30fac1ab278596.zip |
r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements
metze
(This used to be commit 057c1c04d09b48c713ebc0b334cabcefc02561e9)
Diffstat (limited to 'source3/lib/replace/replace.h')
-rw-r--r-- | source3/lib/replace/replace.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h index d75394aa1f..7d6dcec7f1 100644 --- a/source3/lib/replace/replace.h +++ b/source3/lib/replace/replace.h @@ -140,6 +140,11 @@ size_t rep_strnlen(const char *s, size_t n); int rep_setenv(const char *name, const char *value, int overwrite); #endif +#ifndef HAVE_UNSETENV +#define unsetenv rep_unsetenv +int rep_unsetenv(const char *name); +#endif + #ifndef HAVE_SETEUID #define seteuid rep_seteuid int rep_seteuid(uid_t); @@ -181,7 +186,7 @@ int rep_ftruncate(int,off_t); #endif #ifndef HAVE_INITGROUPS -#define ftruncate rep_ftruncate +#define initgroups rep_initgroups int rep_initgroups(char *name, gid_t id); #endif @@ -275,6 +280,12 @@ void rep_vsyslog (int facility_priority, const char *format, va_list arglist) PR typedef int (*comparison_fn_t)(const void *, const void *); #endif +#ifdef REPLACE_STRPTIME +#define strptime rep_strptime +struct tm; +char *rep_strptime(const char *buf, const char *format, struct tm *tm); +#endif + /* Load header file for dynamic linking stuff */ #ifdef HAVE_DLFCN_H #include <dlfcn.h> |