Date: Sat, 21 Jun 2003 12:06:19 -0700 (PDT) From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 33478 for review Message-ID: <200306211906.h5LJ6Jpx038689@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=33478 Change 33478 by rwatson@rwatson_powerbook on 2003/06/21 12:05:29 Darwin doesn't support __printflike(); they also declare __va_list in two different headers, so we grab the machine/ansi.h one indirected through a define. Affected files ... .. //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/sbuf.h#2 edit Differences ... ==== //depot/projects/trustedbsd/sedarwin/apsl/xnu/bsd/sys/sbuf.h#2 (text+ko) ==== @@ -31,7 +31,8 @@ #ifndef _SYS_SBUF_H_ #define _SYS_SBUF_H_ -#include <sys/_types.h> +#include <sys/types.h> +#include <machine/ansi.h> /* * Structure definition @@ -62,8 +63,8 @@ int sbuf_bcpy(struct sbuf *, const char *, size_t); int sbuf_cat(struct sbuf *, const char *); int sbuf_cpy(struct sbuf *, const char *); -int sbuf_printf(struct sbuf *, const char *, ...) __printflike(2, 3); -int sbuf_vprintf(struct sbuf *, const char *, __va_list) __printflike(2, 0); +int sbuf_printf(struct sbuf *, const char *, ...); +int sbuf_vprintf(struct sbuf *, const char *, _BSD_VA_LIST_); int sbuf_putc(struct sbuf *, int); int sbuf_trim(struct sbuf *); int sbuf_overflowed(struct sbuf *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306211906.h5LJ6Jpx038689>