Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2006 00:03:35 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 95372 for review
Message-ID:  <200604160003.k3G03Zn3078260@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95372

Change 95372 by jb@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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604160003.k3G03Zn3078260>