summaryrefslogtreecommitdiff
path: root/src/shared/missing.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-05 18:41:31 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-05 19:07:28 -0400
commit27c64db6dff88ebe9761dfe3b0c073d2a9bf2e41 (patch)
treec00b668d9d4672a04eb2a2634d4d439687dc0a91 /src/shared/missing.h
parent0077776275cb753e478e0f92d4065dec5276c44a (diff)
build-sys: use linux/memfd.h if available
linux/memfd.h was added linux 3.17, so it might not be widely available for a while. Also, check if memfd_create is defined, for the HAVE_LINUX_MEMFD_H check to have a chance of succeeding. Also, collapse all ifdefs for memfd-related stuff, because they were all added together so there's no need to check separately.
Diffstat (limited to 'src/shared/missing.h')
-rw-r--r--src/shared/missing.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h
index 031fe2d1ce..656921d687 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -65,25 +65,11 @@
#ifndef F_ADD_SEALS
#define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
-#endif
-
-#ifndef F_GET_SEALS
#define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
-#endif
-#ifndef F_SEAL_SEAL
#define F_SEAL_SEAL 0x0001 /* prevent further seals from being set */
-#endif
-
-#ifndef F_SEAL_SHRINK
#define F_SEAL_SHRINK 0x0002 /* prevent file from shrinking */
-#endif
-
-#ifndef F_SEAL_GROW
#define F_SEAL_GROW 0x0004 /* prevent file from growing */
-#endif
-
-#ifndef F_SEAL_WRITE
#define F_SEAL_WRITE 0x0008 /* prevent writes */
#endif