aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2003-07-04 15:36:39 +0000
committerWayne Davison <wayned@samba.org>2003-07-04 15:36:39 +0000
commit6813fa7eac1c7d1c26c43b3b62c53285a6364dbb (patch)
treed07f542408eb7a68a6dfe14bb31b81c6e0ff6372 /lib
parent0f5a04e3ffe2e959e8eab4d65ab99cd1ec1f4aef (diff)
downloadandroid_external_rsync-6813fa7eac1c7d1c26c43b3b62c53285a6364dbb.tar.gz
android_external_rsync-6813fa7eac1c7d1c26c43b3b62c53285a6364dbb.tar.bz2
android_external_rsync-6813fa7eac1c7d1c26c43b3b62c53285a6364dbb.zip
Attempting to fix the snprintf() conflict on a gcc-using HPUX 11.11.
Diffstat (limited to 'lib')
-rw-r--r--lib/snprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/snprintf.c b/lib/snprintf.c
index 4f3e4dc7..70c55f7e 100644
--- a/lib/snprintf.c
+++ b/lib/snprintf.c
@@ -752,13 +752,15 @@ static void dopr_outch(char *buffer, size_t *currlen, size_t maxlen, char c)
}
#if !defined(HAVE_VSNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
- int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
+#define vsnprintf rsync_vsnprintf
+ int vsnprintf(char *str, size_t count, const char *fmt, va_list args)
{
return dopr(str, count, fmt, args);
}
#endif
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
+#define snprintf rsync_snprintf
int snprintf(char *str,size_t count,const char *fmt,...)
{
size_t ret;