aboutsummaryrefslogtreecommitdiff
path: root/lib/portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/portability.h')
-rw-r--r--lib/portability.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/portability.h b/lib/portability.h
index 01c77c67..e62de139 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -45,9 +45,13 @@
#define RLIMIT_RTTIME 15
#endif
+// Introduced in Linux 3.1
#ifndef SEEK_DATA
#define SEEK_DATA 3
#endif
+#ifndef SEEK_HOLE
+#define SEEK_HOLE 4
+#endif
// We don't define GNU_dammit because we're not part of the gnu project, and
// don't want to get any FSF on us. Unfortunately glibc (gnu libc)
@@ -199,18 +203,18 @@ static inline void endutxent(void) {;}
#ifndef O_NOFOLLOW
#define O_NOFOLLOW 0
#endif
-
#ifndef O_NOATIME
#define O_NOATIME 01000000
#endif
-
#ifndef O_CLOEXEC
#define O_CLOEXEC 02000000
#endif
-
#ifndef O_PATH
#define O_PATH 010000000
#endif
+#ifndef SCHED_RESET_ON_FORK
+#define SCHED_RESET_ON_FORK (1<<30)
+#endif
// Glibc won't give you linux-kernel constants unless you say "no, a BUD lite"
// even though linux has nothing to do with the FSF and never has.