summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-29 00:30:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-29 00:30:33 -0500
commit6f6f04f6a4817ec5d4e4d9fd3c4ac37894c2da2b (patch)
treee23d1f36545e5258a59f6f99aea0629d1b7d9bf9
parentf8037463ee0fa557761bbd0db98bd4e5702fe314 (diff)
downloadgcompat-6f6f04f6a4817ec5d4e4d9fd3c4ac37894c2da2b.tar.gz
gcompat-6f6f04f6a4817ec5d4e4d9fd3c4ac37894c2da2b.tar.bz2
gcompat-6f6f04f6a4817ec5d4e4d9fd3c4ac37894c2da2b.tar.xz
gcompat-6f6f04f6a4817ec5d4e4d9fd3c4ac37894c2da2b.zip
Use <utmpx.h> for struct utmp definiton
-rwxr-xr-x.travis/install2
-rw-r--r--libgcompat/utmp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/.travis/install b/.travis/install
index 6f95946..6bd03de 100755
--- a/.travis/install
+++ b/.travis/install
@@ -8,7 +8,7 @@ chmod a+x /tmp/apk.static
mkdir -p "$NEWROOT"/etc/apk/keys
cp "$CLONE_DIR"/.travis/*.pub "$NEWROOT"/etc/apk/keys/
-/tmp/apk.static -X "https://distfiles.adelielinux.org/adelie/current/system" --root "$NEWROOT" --initdb --no-progress add adelie-core bash-binsh musl-dev gcc binutils make
+/tmp/apk.static -X "https://distfiles.adelielinux.org/adelie/current/system" --root "$NEWROOT" --initdb --no-progress add adelie-core bash-binsh musl-dev gcc binutils make pkgconf utmps-dev
cd "$NEWROOT"
diff --git a/libgcompat/utmp.c b/libgcompat/utmp.c
index c2bdd91..d044fd2 100644
--- a/libgcompat/utmp.c
+++ b/libgcompat/utmp.c
@@ -1,5 +1,5 @@
#include <stddef.h> /* NULL */
-#include <utmp.h> /* struct utmp */
+#include <utmpx.h> /* struct utmp */
/**
* Get user accounting database entries.