Date: Sat, 15 Apr 2006 22:54:06 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95363 for review Message-ID: <200604152254.k3FMs6NB036835@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95363 Change 95363 by jb@jb_freebsd2 on 2006/04/15 22:53:10 Compatibility cruft. Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/hash.c#2 edit .. //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/strtab.c#2 edit Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/hash.c#2 (text) ==== @@ -34,7 +34,11 @@ #include <stdlib.h> #include <strings.h> #include <sys/types.h> +#if defined(sun) #include <sys/sysmacros.h> +#else +#include <opensolaris/compat/sys/types.h> +#endif #include "hash.h" #include "memory.h" ==== //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/cvt/strtab.c#2 (text) ==== @@ -27,7 +27,12 @@ #pragma ident "@(#)strtab.c 1.2 05/06/08 SMI" #include <sys/types.h> +#if defined(sun) #include <sys/sysmacros.h> +#else +#include <opensolaris/compat/sys/types.h> +#define MIN(a, b) ((a) < (b) ? (a) : (b)) +#endif #include <strings.h> #include <stdlib.h> #include <stdio.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604152254.k3FMs6NB036835>