chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Shut up wait_for_sysfs class/net failure messages, as it's not possible
[elogind.git]
/
klibc_fixups
/
klibc_fixups.h
diff --git
a/klibc_fixups/klibc_fixups.h
b/klibc_fixups/klibc_fixups.h
index 8d2933b1b69b20477dd6b379b1273b8477be109b..13011b688886af27e487d0ee97ca2d6cbc8567d6 100644
(file)
--- a/
klibc_fixups/klibc_fixups.h
+++ b/
klibc_fixups/klibc_fixups.h
@@
-3,6
+3,18
@@
#ifndef _KLIBC_FIXUPS_H
#define _KLIBC_FIXUPS_H
#ifndef _KLIBC_FIXUPS_H
#define _KLIBC_FIXUPS_H
+#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
+#include <unistd.h>
+
+#define _SC_PAGESIZE 0x66
+static inline long int sysconf(int name)
+{
+ if (name == _SC_PAGESIZE)
+ return getpagesize();
+
+ return -1;
+}
+
struct exit_status {
short int e_termination; /* process termination status */
short int e_exit; /* process exit status */
struct exit_status {
short int e_termination; /* process termination status */
short int e_exit; /* process exit status */