Mailing List Archive

Compilation warnings for OSF/1
Compiling 0.8.6 under OSF/1 1.2 (!!) gives a compilation warning for BSD
being redefined in conf.h; it's already defined in <sys/param.h>,
included from <sys/file.h>

Fix: move #include <sys/file.h> to before the OS config settings.

DEC cc also gives a compilation warning for timeout() in being called
with the wrong number of parameters in http_main.c; its defined
as timeout(int sig), but is called as timeout().

------------------ begin file conf.patch ------------------------
*** conf.h.orig Wed Aug 2 10:47:35 1995
--- conf.h Thu Aug 3 13:25:33 1995
***************
*** 63,68 ****
--- 63,69 ----
* conf.h: system-dependant #defines and includes...
*/

+ #include <sys/file.h>

/* Define one of these according to your system. */
#if defined(SUNOS4)
***************
*** 118,124 ****
--- 119,127 ----
#define JMP_BUF sigjmp_buf

#elif defined(OSF1)
+ #ifndef BSD
#define BSD
+ #endif
#undef NO_KILLPG
#undef NO_SETSID
#define JMP_BUF sigjmp_buf
***************
*** 282,288 ****
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
- #include <sys/file.h>
#include <sys/socket.h>
#ifdef NEED_SELECT_H
#include <sys/select.h>
--- 285,290 ----
--------------------- end file conf.patch -------------------------


----------------------- begin file timeout.patch ------------------
*** http_main.c~ Thu Aug 3 01:38:45 1995
--- http_main.c Thu Aug 3 14:20:39 1995
***************
*** 251,257 ****
--alarms_blocked;
if (alarms_blocked == 0 && alarm_pending) {
alarm_pending = 0;
! timeout();
}
}

--- 251,257 ----
--alarms_blocked;
if (alarms_blocked == 0 && alarm_pending) {
alarm_pending = 0;
! timeout(0);
}
}

----------------------- end file timeout.patch ------------------
Re: Compilation warnings for OSF/1 [ In reply to ]
Dave, it's good to have the fixes, but could you put them in #ifdef OSF1?
(I don't want to take the risk that this will screw up some other system
at this point...).

rst