[Bug 1112] __dead conflicts with sys/cdefs.h on Interix

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Nov 5 15:13:04 EST 2005


http://bugzilla.mindrot.org/show_bug.cgi?id=1112

           Summary: __dead conflicts with sys/cdefs.h on Interix
           Product: Portable OpenSSH
           Version: 4.2p1
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build system
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: tv at pobox.com


The __dead definition in defines.h redefines it to be __attribute__(noreturn)
-- which works fine if the OS's sys/cdefs.h uses the same definition, or if the
symbol wasn't previously defined.

However, Interix uses (and provides) the older BSD definition for __dead, which
is "volatile".  That can't live after the arguments; it would have to be placed
before the return type.

A better solution here would be to use __attribute__(noreturn) explicitly and
do away with playing __dead (pun intended).




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list