So we can use snprintf, provide it for platforms that don't have it
objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
hputil.o kreltime.o isathing.o get_krbrlm.o uuid.o serverLog.o \
dirpath.o fileutil.o netutils.o flipbase64.o \
- afs_atomlist.o afs_lhash.o
+ afs_atomlist.o afs_lhash.o snprintf.o
headers = assert.h potpourri.h itc.h errors.h afsutil.h pthread_glock.h \
dirpath.h afs_atomlist.h afs_lhash.h
volparse.o: volparse.c
${CC} ${CFLAGS} -c volparse.c
+snprintf.o: snprintf.c
+ ${CC} ${CFLAGS} -c snprintf.c
+
base64.o: base64.c
${CC} ${CFLAGS} -c base64.c
/* snprintf.c - Formatted, length-limited print to a string */
+#include <afs/param.h>
+#if defined(AFS_OSF20_ENV) || defined(AFS_SGI51_ENV)
+
#include <sys/types.h>
#include <stdarg.h>
#include <stdio.h>
vsnprintf(p, avail, fmt, ap);
va_end(ap);
}
+#endif /* AFS_OSF20_ENV || AFS_SGI51_ENV */