bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] Portability issues to sgi


From: Bert Deknuydt
Subject: [bug-mailutils] Portability issues to sgi
Date: Tue, 14 Oct 2003 13:19:41 +0200

Hello,

I tried to build mailutils 0.4 for SGI (mips-sgi-irix6.5).  I had to solve two
minor problems.

--> inst_t, used somewhere in imap4d, happens to be defined in 
    types.h on Irix.  So either a renaming of inst_t is needed, or a macro
    to mask inst_t during include.  I did the latter:

    In imap4d/imap4d.h

    #ifdef __sgi__
    #define inst_t system_inst_t
    #endif
    #include <sys/types.h>
    #ifdef __sgi__
    #undef inst_t
    #endif

--> The configure tests properly for the existence of vfork, but
    in mailbox/sendmail.c vfork is called without the proper macros.

    diff -c sendmail.c.orig sendmail.c
    *** sendmail.c.orig     Tue Oct 14 12:58:25 2003
    --- sendmail.c  Tue Oct 14 12:59:37 2003
    ***************
    *** 296,302 ****
    --- 296,306 ----
        if (pipe (tunnel) == 0)
          {
            sendmail->fd = tunnel[1];
     + #ifdef HAVE_VFORK
            sendmail->pid = vfork ();
     + #else
     +      sendmail->pid = fork ();
     + #endif
            if (sendmail->pid == 0)     /* Child.  */
              {
                close (STDIN_FILENO);

Apart from this, mailutils seems to function properly on Irix.
(Also on Tru64; no patches needed there).

Greetings, Bert.

-- 
-------------- eMail address@hidden ---------------
B.DeKnuydt, PSI-KULeuven                            Tel. +32-16-321880
Kasteelpark Arenberg 10          /|    | ||
B-3001 Leuven-Heverlee        _,_)|  4_|_||
FLANDERS, BELGIUM            / .                    Fax. +32-16-321838
-------------- http://www.esat.kuleuven.ac.be/~deknuydt --------------
        Cursed be man! How ungrateful is he! Qur'An 80, 17




reply via email to

[Prev in Thread] Current Thread [Next in Thread]