OSDN Git Service

disable libutil related prototypes if asked to
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 19 Nov 2009 18:07:30 +0000 (19:07 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 19 Nov 2009 18:07:30 +0000 (19:07 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
include/utmp.h

index c198ede..182f45e 100644 (file)
@@ -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)