This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] FreeBSD compatibility for <sys/select.h>
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Date: Tue, 15 Dec 2015 11:45:43 +0100
- Subject: Re: [PATCH] FreeBSD compatibility for <sys/select.h>
- Authentication-results: sourceware.org; auth=none
- References: <1450083978-5786-1-git-send-email-sebastian dot huber at embedded-brains dot de> <20151214144226 dot GD28594 at calimero dot vinschen dot de>
On 14/12/15 15:42, Corinna Vinschen wrote:
On Dec 14 10:06, Sebastian Huber wrote:
> * libc/include/sys/_sigset.h: New.
> * libc/include/sys/select.h: Do not include <sys/types.h> and
> <sys/time.h> to avoid cyclic header file dependencies. Include
> specialized header files instead.
> (sigset_t): Conditionally define.
> * libc/include/sys/signal.h (sigset_t): Likewise.
> * libc/include/sys/time.h: Include <sys/select.h> if
> __BSD_VISIBLE.
> * libc/include/sys/types.h: Likewise.
Patch applied with changes for Cygwin. I dropped the definition of
sigset_t in Cygwin's cygwin/signal.h in favor of the one from the
new sys/_sigset.h, so we can remove a few Cygwin test macros.
Thanks, the <sys/select.h> of Newlib works now fine for RTEMS with the
old and new network stack.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschÃftliche Mitteilung im Sinne des EHUG.