mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-30 06:25:25 +03:00
[PATCH] catchup with recent klibc
Our own implementation of the sysinfo system call is no longer needed, cause it's merged it into klibc now.
This commit is contained in:
parent
9e86e12e10
commit
84df02dd63
@ -37,8 +37,6 @@
|
||||
#define GR_FILE "/etc/group"
|
||||
#define UTMP_FILE "/var/run/utmp"
|
||||
|
||||
_syscall1(int, sysinfo, struct sysinfo *, info);
|
||||
|
||||
/* 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)
|
||||
{
|
||||
|
@ -3,11 +3,6 @@
|
||||
#ifndef KLIBC_FIXUPS_H
|
||||
#define KLIBC_FIXUPS_H
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/unistd.h>
|
||||
|
||||
int sysinfo(struct sysinfo *info);
|
||||
|
||||
struct passwd {
|
||||
char *pw_name; /* user name */
|
||||
char *pw_passwd; /* user password */
|
||||
|
@ -32,9 +32,7 @@
|
||||
#include <time.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
#ifndef __KLIBC__
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
|
||||
#include "libsysfs/sysfs/libsysfs.h"
|
||||
#include "list.h"
|
||||
|
Loading…
Reference in New Issue
Block a user