mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Fix snprintf related failures on IRIX.
This commit is contained in:
parent
1cd45e5660
commit
32390732d7
7
evutil.c
7
evutil.c
@ -1483,6 +1483,13 @@ evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap)
|
||||
r = _vsnprintf(buf, buflen, format, ap);
|
||||
if (r < 0)
|
||||
r = _vscprintf(format, ap);
|
||||
#elif defined(sgi)
|
||||
/* Make sure we always use the correct vsnprintf on IRIX */
|
||||
extern int _xpg5_vsnprintf(char * __restrict,
|
||||
__SGI_LIBC_NAMESPACE_QUALIFIER size_t,
|
||||
const char * __restrict, /* va_list */ char *);
|
||||
|
||||
r = _xpg5_vsnprintf(buf, buflen, format, ap);
|
||||
#else
|
||||
r = vsnprintf(buf, buflen, format, ap);
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user