summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-07-23 03:59:57 +0000
committerTim Potter <tpot@samba.org>2003-07-23 03:59:57 +0000
commit8991cecd543172c10da92853b9b861ce85dafeff (patch)
tree52fba5e89705e8695bdc6ab732ca1eea2df4db7f /source3/include
parent0c72828e3de3e20b72d2a1f1bb80fc5685bfdbea (diff)
downloadsamba-8991cecd543172c10da92853b9b861ce85dafeff.tar.gz
samba-8991cecd543172c10da92853b9b861ce85dafeff.tar.bz2
samba-8991cecd543172c10da92853b9b861ce85dafeff.zip
A fix for bug 174. I'm pushing this to the tree to test it on one of
the build farm machines that I don't have direct access to (hpntc9I). (This used to be commit b01965823341bbabb74dcbc09d379b43db2ec680)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index edaeda3abe..77c2b437bd 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -1232,6 +1232,14 @@ int snprintf(char *,size_t ,const char *, ...) PRINTF_ATTRIBUTE(3,4);
int asprintf(char **,const char *, ...) PRINTF_ATTRIBUTE(2,3);
#endif
+/* Fix prototype problem with non-C99 compliant snprintf implementations, esp
+ HPUX 11. Don't change the sense of this #if statement. Read the comments
+ in lib/snprint.c if you think you need to. See also bugzilla bug 174. */
+
+#if !defined(HAVE_SNPRINTF) || !defined(HAVE_C99_VSNPRINTF)
+#define snprintf smb_snprintf
+#endif
+
void sys_adminlog(int priority, const char *format_str, ...) PRINTF_ATTRIBUTE(2,3);
int pstr_sprintf(pstring s, const char *fmt, ...) PRINTF_ATTRIBUTE(2,3);