mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-10 04:50:03 -04:00
27 lines
644 B
Plaintext
27 lines
644 B
Plaintext
$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 <sys/stropts.h>
|
|
#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);
|