PERFORCE change 95372 for review
John Birrell
jb at FreeBSD.org
Sun Apr 16 00:03:36 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=95372
Change 95372 by jb at jb_freebsd2 on 2006/04/16 00:02:38
Compatibility cruft.
Affected files ...
.. //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/dump/dump.c#2 edit
Differences ...
==== //depot/projects/dtrace/src/contrib/opensolaris/tools/ctf/dump/dump.c#2 (text) ====
@@ -27,7 +27,9 @@
#pragma ident "@(#)dump.c 1.12 05/06/08 SMI"
#include <sys/types.h>
+# if defined(sun)
#include <sys/sysmacros.h>
+#endif
#include <sys/stat.h>
#include <sys/mman.h>
@@ -767,6 +769,9 @@
static int
print_usage(FILE *fp, int verbose)
{
+#if !defined(sun)
+#define getpname getprogname
+#endif
(void) fprintf(fp, "Usage: %s [-dfhlsSt] [-u file] file\n", getpname());
if (verbose) {
More information about the p4-projects
mailing list