Re: problems with configure

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: problems with configure
Дата
Msg-id 14639.973717317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: problems with configure  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: problems with configure  ("Martin A. Marques" <martin@math.unl.edu.ar>)
Re: problems with configure  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
"Martin A. Marques" <martin@math.unl.edu.ar> writes:
>>>> Is there any kind of info you would need that I could provide?
>> 
>> If you could put
>> #include <sys/types.h>
>> #include <sys/socket.h>
>> into a file temp.c, and then send the output of "gcc -E temp.c",
>> it might shed some light.

> There it goes!!

Well, that tells the tale all right: the critical lines are
typedef    uint32_t    socklen_t;
typedef    void        *Psocklen_t;
extern int accept(int, struct sockaddr *, Psocklen_t);

What brainless idiot decided it would be a good idea to declare
accept's last argument as void*, do you suppose?  (At least you
report that Solaris 8 no longer has this folly, so they did get
a clue eventually.)

Not sure what to do about this.  It will clearly not do to define
ACCEPT_TYPE_ARG3 as void.  Perhaps we need a special case for
Solaris 7: if we detect that accept() is declared with "void *",
assume that socklen_t is the thing to use.  Peter, any thoughts?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Location of client header files
Следующее
От: "Martin A. Marques"
Дата:
Сообщение: Re: problems with configure