chiark / gitweb /
[PATCH] improve klibc fixup integration
[elogind.git] / klibc_fixups / klibc_fixups.c
similarity index 95%
rename from klibc_fixups.c
rename to klibc_fixups/klibc_fixups.c
index e68ce22..2d673d8 100644 (file)
 #include <fcntl.h>
 #include <sys/types.h>
 
-#include "udev.h"
-#include "klibc_fixups.h"
-#include "udev_lib.h"
-#include "logging.h"
+#include "pwd.h"
+#include "../udev.h"
+#include "../udev_lib.h"
+#include "../logging.h"
 
 #define PW_FILE                "/etc/passwd"
 #define GR_FILE                "/etc/group"
-#define UTMP_FILE      "/var/run/utmp"
 
 /* return the id of a passwd style line, selected by the users name */
 static unsigned long get_id_by_name(const char *uname, const char *dbfile)
@@ -125,4 +124,4 @@ struct group *getgrnam(const char *name)
                return &gr;
 }
 
-#endif
+#endif /* __KLIBC__ */