summaryrefslogtreecommitdiffstats
path: root/c/src/lib/include/rtems/libio_.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-17 21:59:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-17 21:59:28 +0000
commitd6c20ff3733a781a34fc26c42fe5f41df9aada52 (patch)
tree490714fe9e44ba59679e95cae54c996175901775 /c/src/lib/include/rtems/libio_.h
parent2001-08-16 Mike Siers <mikes@poliac.com> (diff)
downloadrtems-d6c20ff3733a781a34fc26c42fe5f41df9aada52.tar.bz2
2001-08-17 Joel Sherrill <joel@OARcorp.com>
* include/rtems/libio_.h: Added ifdef to ensure that LOGIN_NAME_MAX is defined on GNU/Linux (RedHat 6.2 distribution). * libc/unixlibc.c: Added stubs for rtems_io_register_name() and rtems_io_lookup_name() so UNIX port would compile the IO manager sptest that registers /dev/null.
Diffstat (limited to '')
-rw-r--r--c/src/lib/include/rtems/libio_.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/lib/include/rtems/libio_.h b/c/src/lib/include/rtems/libio_.h
index 027ce7d2c3..7e0f6df71e 100644
--- a/c/src/lib/include/rtems/libio_.h
+++ b/c/src/lib/include/rtems/libio_.h
@@ -211,6 +211,14 @@ extern rtems_libio_t *rtems_libio_iop_freelist;
/*
* External structures
*/
+#if !defined(LOGIN_NAME_MAX)
+#if defined(__linux__)
+#define LOGIN_NAME_MAX _POSIX_LOGIN_NAME_MAX
+#else
+#error "don't know how to set LOGIN_NAME_MAX"
+#endif
+#endif
+
typedef struct {
rtems_id task_id;
rtems_filesystem_location_info_t current_directory;