PLEASE TEST snapshots
Ben Lindstrom
mouring at etoh.eviladmin.org
Sat Apr 13 03:46:25 EST 2002
[..]
>
> ../openssh/monitor_mm.c: In function `mm_create':
> ../openssh/monitor_mm.c:88: `MAP_ANON' undeclared (first use in this function)
> ../openssh/monitor_mm.c:88: (Each undeclared identifier is reported only once
> ../openssh/monitor_mm.c:88: for each function it appears in.)
> make: *** [monitor_mm.o] Error 1
>
> It might be well for such systems to default to --without-privsep-user
> in configure Also, it would be well to add the documentation of the
> --with(out)-privsep-user to the 'configure --help' output.
>
Does the following patch fix it? We are not looking to do yet another
compile option. Just disable the feature for those platform which we
can't easily fix for this release. Then work out the problems post-3.2
- Ben
Index: monitor_mm.c
===================================================================
RCS file: /var/cvs/openssh/monitor_mm.c,v
retrieving revision 1.6
diff -u -r1.6 monitor_mm.c
--- monitor_mm.c 7 Apr 2002 22:36:50 -0000 1.6
+++ monitor_mm.c 12 Apr 2002 17:53:12 -0000
@@ -84,7 +84,7 @@
*/
mm->mmalloc = mmalloc;
-#ifdef HAVE_MMAP
+#if defined(HAVE_MMAP) && defined(MAP_ANON)
address = mmap(NULL, size, PROT_WRITE|PROT_READ, MAP_ANON|MAP_SHARED,
-1, 0);
if (address == MAP_FAILED)
More information about the openssh-unix-dev
mailing list