diff options
author | Andrew Tridgell <tridge@freebsd.home.tridgell.net> | 2010-03-24 05:06:25 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-24 07:11:38 +0100 |
commit | a599319d0a389ff0c31dae8068cd7a78352aa9e7 (patch) | |
tree | 07f9ae9c8c5d121261f5e17cce8638c1f5029d70 /lib/replace/replace.h | |
parent | 83aaf4829e2b9bece5c1b4181553d3025d6d2cb3 (diff) | |
download | samba-a599319d0a389ff0c31dae8068cd7a78352aa9e7.tar.gz samba-a599319d0a389ff0c31dae8068cd7a78352aa9e7.tar.bz2 samba-a599319d0a389ff0c31dae8068cd7a78352aa9e7.zip |
libreplace: fixed declaration of dprintf() on FreeBSD
Diffstat (limited to 'lib/replace/replace.h')
-rw-r--r-- | lib/replace/replace.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h index e7578cd60f..cd73e65bea 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -336,6 +336,16 @@ int rep_dlclose(void *handle); /* prototype is in system/network.h */ #endif +#ifndef HAVE_VDPRINTF +#define vdprintf rep_vdprintf +int rep_vdprintf(int fd, const char *format, va_list ap); +#endif + +#ifndef HAVE_DPRINTF +#define dprintf rep_dprintf +int rep_dprintf(int fd, const char *format, ...); +#endif + #ifndef PRINTF_ATTRIBUTE #if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) /** Use gcc attribute to check printf fns. a1 is the 1-based index of |