mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 00:37:23 +01:00
Android: fix compiling
This commit is contained in:
+9
-1
@@ -1,7 +1,15 @@
|
||||
#include "fastfetch.h"
|
||||
#include "common/printing.h"
|
||||
|
||||
#include <utmpx.h>
|
||||
#if FF_HAVE_UTMPX_H
|
||||
#include <utmpx.h>
|
||||
#else
|
||||
//for Android compatibility
|
||||
#include <utmp.h>
|
||||
#define utmpx utmp
|
||||
#define setutxent setutent
|
||||
#define getutxent getutent
|
||||
#endif
|
||||
|
||||
#define FF_USERS_MODULE_NAME "Users"
|
||||
#define FF_USERS_NUM_FORMAT_ARGS 1
|
||||
|
||||
Reference in New Issue
Block a user