PERFORCE change 95363 for review
John Birrell
jb at FreeBSD.org
Sat Apr 15 22:54:07 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95363
Change 95363 by jb at 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>
More information about the p4-projects
mailing list