From e96dd0716e5932625af9e8a91bfa3d989abe1fdb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 30 Aug 2015 06:00:32 -0500 Subject: Add portability.h glue to let uptime build without TOYBOX_UTMPX. --- lib/portability.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/portability.h') diff --git a/lib/portability.h b/lib/portability.h index ff22fa59..f2f98069 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -225,6 +225,12 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream); #endif #if CFG_TOYBOX_UTMPX #include +#else +struct utmpx {int ut_type;}; +#define USER_PROCESS 0 +static inline struct utmpx *getutxent(void) {return 0;} +static inline void setutxent(void) {;} +static inline void endutxent(void) {;} #endif // Some systems don't define O_NOFOLLOW, and it varies by architecture, so... -- cgit v1.2.3