[Top][All Lists]

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

[bug #24564] build failure on solaris

From: Riccardo mottola
Subject: [bug #24564] build failure on solaris
Date: Tue, 14 Oct 2008 21:38:57 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080829 SeaMonkey/1.1.12


                 Summary: build failure on solaris
                 Project: GNUstep
            Submitted by: rmottola
            Submitted on: Tue 14 Oct 2008 09:38:55 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any



on solaris 2.5, gcc 2.95, I get:

GSSocketStream.m: In function `-[GSSocketStream
GSSocketStream.m:1394: warning: implicit declaration of function `inet_pton'
GSSocketStream.m: In function `-[GSSocketInputStream close]':
GSSocketStream.m:1683: `SHUT_RD' undeclared (first use in this function)
GSSocketStream.m:1683: (Each undeclared identifier is reported only once
GSSocketStream.m:1683: for each function it appears in.)
GSSocketStream.m: In function `-[GSSocketInputStream _dispatch]':
GSSocketStream.m:1900: warning: passing arg 4 of `getsockopt' from
incompatible pointer type

I propose the following for the SHUT_RD missing:
#ifndef SHUT_RD
#define SHUT_RD 0
#define SHUT_WR 1
#define SHUT_RDWR 2

I have seen that in old code often the numbers were used directly and the
modern manpage explicitely state that those values are hard-coded.

Or maybe a more expensive configure check should be used?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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