[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: suggestions
From: |
Marc Glisse |
Subject: |
Re: suggestions |
Date: |
Fri, 5 Dec 2003 16:18:10 +0100 (MET) |
On Fri, 5 Dec 2003, Thomas Dickey wrote:
> > On recent freebsd, one needs to define __BSD_VISIBLE in order to have
> > access to u_short and such types when _XOPEN_SOURCE is defined.
> How recent? I've done compiles on 4.8 and 5.1
Well, it is a 5.1 I am using... Google tells me the python developpers had
that same problem with _XOPEN_SOURCE and _POSIX_C_SOURCE defined and added
__BSD_VISIBLE. In /usr/include/sys/types.h, the u_short typedef is
following a #if __BSD_VISIBLE and /usr/include/sys/cdefs.h does not define
__BSD_VISIBLE when using _XOPEN_SOURCE.
Now as to why it worked for you...
--
Marc Glisse
26 rue de Bapaume
94120 Fontenay sous Bois
FRANCE