diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-05-30 12:28:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-05-30 12:28:13 +0000 |
commit | 05d08414728313e2ca04cd5ccbd3ce9d3470a0a3 (patch) | |
tree | b2af01ef32b440fec6d89b097246aa86840b1941 /source3/include/includes.h | |
parent | ad7c3ea0f0918f09283ab28e4fe99f1156ab52f1 (diff) | |
download | samba-05d08414728313e2ca04cd5ccbd3ce9d3470a0a3.tar.gz samba-05d08414728313e2ca04cd5ccbd3ce9d3470a0a3.tar.xz samba-05d08414728313e2ca04cd5ccbd3ce9d3470a0a3.zip |
- added AC_HAVE_DECL() macro to aclocal.m4, so we can easily add
tests for a fn or variable being defined in headers
- used this to add prototypes for asprintf and vasprintf on systems
that don't have them
(This used to be commit ab2465239414853a14529f88a25f13c392aa2d3f)
Diffstat (limited to 'source3/include/includes.h')
-rw-r--r-- | source3/include/includes.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h index 9137799064c..e30831ac804 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -865,6 +865,12 @@ int setresuid(uid_t ruid, uid_t euid, uid_t suid); #if (defined(USE_SETRESUID) && !defined(HAVE_SETRESGID_DECL)) int setresgid(gid_t rgid, gid_t egid, gid_t sgid); #endif +#ifndef HAVE_ASPRINTF_DECL +int asprintf(char **ptr, const char *format, ...); +#endif +#ifndef HAVE_VASPRINTF_DECL +int vasprintf(char **ptr, const char *format, va_list ap); +#endif #if !defined(HAVE_BZERO) && defined(HAVE_MEMSET) #define bzero(a,b) memset((a),'\0',(b)) |