chiark / gitweb /
Merge pull request #19 from elogind/dev_v231
[elogind.git] / src / libelogind / sd-login / test-login.c
index c1fd7dd33e4abe544691cb8917d89dba5dac048d..e0a838d3fef011e8b5b7b43aad84c1a34f03d58f 100644 (file)
@@ -29,6 +29,9 @@
 #include "strv.h"
 #include "util.h"
 
+/// Additional includes needed by elogind
+#include "musl_missing.h"
+
 static void test_login(void) {
         _cleanup_close_pair_ int pair[2] = { -1, -1 };
         _cleanup_free_ char *pp = NULL, *qq = NULL;
@@ -255,6 +258,7 @@ static void test_login(void) {
 }
 
 int main(int argc, char* argv[]) {
+        elogind_set_program_name(argv[0]);
         log_parse_environment();
         log_open();