strace 4.5.6 diffs to build on solaris2.8

Marty Leisner mleisner at eng.mc.xerox.com
Tue Aug 24 09:38:00 UTC 2004


Solaris 2.8 had problems (4.5.2 was
no problem -- changes were introduced after 4.5.2)
I used gcc 3.4.1 to build.

I'd much rather having feature tests than system macros...
but this is a start...


:1 mleisner at santa 12:18:01; rcsdiff -u sock.c process.c
===================================================================
RCS file: sock.c,v
retrieving revision 1.7
diff -u -r1.7 sock.c
- --- sock.c      2004/07/12 07:13:07     1.7
+++ sock.c      2004/08/24 16:07:26
@@ -33,6 +33,9 @@
 #include <sys/socket.h>
 #include <linux/sockios.h>
 #else
+#ifdef sun
+#include <sys/socket.h>
+#endif
 #include <sys/sockio.h>
 #endif
 #include <arpa/inet.h>
===================================================================
RCS file: process.c,v
retrieving revision 1.86
diff -u -r1.86 process.c
- --- process.c   2004/07/12 07:44:09     1.86
+++ process.c   2004/08/24 16:14:01
@@ -141,6 +141,24 @@
 #define WCOREDUMP(status) ((status) & 0200)
 #endif
 
+/* this was in groff 1.19.1:pipeline.c */
+/* SVR4 uses WCOREFLG; Net 2 uses WCOREFLAG. */
+#ifndef WCOREFLAG
+#ifdef WCOREFLG
+#define WCOREFLAG WCOREFLG
+#endif /* WCOREFLG */
+#endif /* not WCOREFLAG */
+
+
+/* this was copied from the linux headers */
+#ifndef W_STOPCODE
+#define W_STOPCODE(sig)  ((sig) << 8 | 0x7f)
+#endif
+
+#ifndef W_EXITCODE
+#define W_EXITCODE(ret, sig)   ((ret) << 8 | (sig))
+#endif
+
 /* WTA: this was `&& !defined(LINUXSPARC)', this seems unneeded though? */
 #if defined(HAVE_PRCTL)
 static struct xlat prctl_options[] = {


marty		mleisner at eng.mc.xerox.com   
Don't  confuse education with schooling.
	Milton Friedman to Yogi Berra





More information about the Strace-devel mailing list