forked from Imagelibrary/rtems
patch from Tony Bennett on the ifdef for O_NDELAY
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
* Provide UNIX/POSIX-like io system calls for RTEMS using the
|
* Provide UNIX/POSIX-like io system calls for RTEMS using the
|
||||||
* RTEMS IO manager
|
* RTEMS IO manager
|
||||||
*
|
*
|
||||||
* TODO
|
|
||||||
*
|
|
||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -13,11 +11,14 @@
|
|||||||
#include <stdio.h> /* O_RDONLY, et.al. */
|
#include <stdio.h> /* O_RDONLY, et.al. */
|
||||||
#include <fcntl.h> /* O_RDONLY, et.al. */
|
#include <fcntl.h> /* O_RDONLY, et.al. */
|
||||||
|
|
||||||
|
#if ! defined(O_NDELAY)
|
||||||
# if defined(solaris2)
|
# if defined(solaris2)
|
||||||
# define O_NDELAY O_NONBLOCK
|
# define O_NDELAY O_NONBLOCK
|
||||||
# elif defined(RTEMS_NEWLIB)
|
# elif defined(RTEMS_NEWLIB)
|
||||||
# define O_NDELAY _FNBIO
|
# define O_NDELAY _FNBIO
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h> /* strcmp */
|
#include <string.h> /* strcmp */
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
* Provide UNIX/POSIX-like io system calls for RTEMS using the
|
* Provide UNIX/POSIX-like io system calls for RTEMS using the
|
||||||
* RTEMS IO manager
|
* RTEMS IO manager
|
||||||
*
|
*
|
||||||
* TODO
|
|
||||||
*
|
|
||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -13,11 +11,14 @@
|
|||||||
#include <stdio.h> /* O_RDONLY, et.al. */
|
#include <stdio.h> /* O_RDONLY, et.al. */
|
||||||
#include <fcntl.h> /* O_RDONLY, et.al. */
|
#include <fcntl.h> /* O_RDONLY, et.al. */
|
||||||
|
|
||||||
|
#if ! defined(O_NDELAY)
|
||||||
# if defined(solaris2)
|
# if defined(solaris2)
|
||||||
# define O_NDELAY O_NONBLOCK
|
# define O_NDELAY O_NONBLOCK
|
||||||
# elif defined(RTEMS_NEWLIB)
|
# elif defined(RTEMS_NEWLIB)
|
||||||
# define O_NDELAY _FNBIO
|
# define O_NDELAY _FNBIO
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h> /* strcmp */
|
#include <string.h> /* strcmp */
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
* Provide UNIX/POSIX-like io system calls for RTEMS using the
|
* Provide UNIX/POSIX-like io system calls for RTEMS using the
|
||||||
* RTEMS IO manager
|
* RTEMS IO manager
|
||||||
*
|
*
|
||||||
* TODO
|
|
||||||
*
|
|
||||||
* $Id$
|
* $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -13,11 +11,14 @@
|
|||||||
#include <stdio.h> /* O_RDONLY, et.al. */
|
#include <stdio.h> /* O_RDONLY, et.al. */
|
||||||
#include <fcntl.h> /* O_RDONLY, et.al. */
|
#include <fcntl.h> /* O_RDONLY, et.al. */
|
||||||
|
|
||||||
|
#if ! defined(O_NDELAY)
|
||||||
# if defined(solaris2)
|
# if defined(solaris2)
|
||||||
# define O_NDELAY O_NONBLOCK
|
# define O_NDELAY O_NONBLOCK
|
||||||
# elif defined(RTEMS_NEWLIB)
|
# elif defined(RTEMS_NEWLIB)
|
||||||
# define O_NDELAY _FNBIO
|
# define O_NDELAY _FNBIO
|
||||||
# endif
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h> /* strcmp */
|
#include <string.h> /* strcmp */
|
||||||
|
|||||||
Reference in New Issue
Block a user