Workaround for _PATH_UTMP and _PATH_WTMP defines on musl libc

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-02-14 03:52:56 +01:00
1 parent 5fbcf6814c
commit 8a71f2d323
3 files changed
+20 -6

No files matched your search

+1 -5
View File
@@ -25,16 +25,12 @@
#include <paths.h>
#include <time.h>
#include <utmp.h>
#include <arpa/inet.h>
#include <sys/utsname.h>
#include <lite/lite.h>
#include "helpers.h"
#ifndef _PATH_BTMP
#define _PATH_BTMP "/var/log/btmp"
#endif
#include "utmp-api.h"
#define MAX_NO 5
#define MAX_SZ 100 * 1024