$NetBSD: patch-ac,v 1.9 2010/01/01 19:38:44 spz Exp $ Cast to long before int when casting a pointer. It still "loses precision" but in this case it doesn't matter and it quiets the compiler. --- process.c.orig 2003-09-18 08:53:54.000000000 -0400 +++ process.c @@ -37,7 +37,7 @@ #include "config.h" /* for solaris 2.1, Unixware (SVR4.2) and possibly others: */ -#ifdef SVR4 +#ifdef HAVE_SYS_STROPTS_H # include #endif @@ -5466,7 +5466,7 @@ char *data; /* dummy */ *buf = 0; return; } - act.nr = (int)data; + act.nr = (int)(long)data; act.args = noargs; act.argl = 0; DoAction(&act, -1);