diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-19 19:07:30 +0100 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2009-11-19 19:07:30 +0100 |
commit | c356796c330ec98fdbe5b9daba0ba386fb643540 (patch) | |
tree | 91121a9f2406c18e77cf91a8d5a4b3cf42a6cfa7 /include | |
parent | 5530578d87079defddaeb75843ce3e44d46bd8d0 (diff) |
disable libutil related prototypes if asked to
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/utmp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/utmp.h b/include/utmp.h index c198ede35..182f45e1c 100644 --- a/include/utmp.h +++ b/include/utmp.h @@ -37,6 +37,7 @@ __BEGIN_DECLS +#ifdef __UCLIBC_HAS_LIBUTIL__ /* Make FD be the controlling terminal, stdin, stdout, and stderr; then close FD. Returns 0 on success, nonzero on error. */ extern int login_tty (int __fd) __THROW; @@ -51,6 +52,7 @@ extern int logout (__const char *__ut_line) __THROW; /* Append to wtmp an entry for the current time and the given info. */ extern void logwtmp (__const char *__ut_line, __const char *__ut_name, __const char *__ut_host) __THROW; +#endif /* Append entry UTMP to the wtmp-like file WTMP_FILE. */ extern void updwtmp (__const char *__wtmp_file, __const struct utmp *__utmp) |