[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with zmailer 2.99.27 and Linux
Hi,
I'm just trying to compile zmailer 2.99.27 with linux 2.0.7pre/Redhat 3.0.3.
It breaks with:
gcc -g -O2 -fno-strength-reduce -I../include -c scheduler.c -o
scheduler.o
scheduler.c: In function `init_timeserver':
scheduler.c:1720: `MAP_VARIABLE' undeclared (first use this function)
scheduler.c:1720: (Each undeclared identifier is reported only once
scheduler.c:1720: for each function it appears in.)
scheduler.c:1721: warning: assignment from incompatible pointer type
I tried to remove the MAP_VARIABLE flag but after that I got
mmap() of timeserver segment gave: Invalid argument
in the scheduler log file. Solaris doesn't seem to have MAP_VARIABLE
also. So I did this little hack:
--- scheduler.c-old Tue May 28 20:19:05 1996
+++ scheduler.c Tue May 28 20:20:03 1996
@@ -1700,7 +1700,7 @@
{
int ppid;
-#ifndef MAP_ANONYMOUS /* must have a file ? (SunOS 4.1) */
+#if !defined(MAP_ANONYMOUS) || !defined(MAP_VARIABLE) /* must have a
file ? (SunOS 4.1) */
char blk[1024];
int i;
FILE *fp = tmpfile();
But I hope there is a more elegant way to solve this ..
-Andi