Skip to content
Snippets Groups Projects
Commit b3d1cd67 authored by Simon McVittie's avatar Simon McVittie
Browse files

library: Add fallback F_OFD_ constants to missing-internal.h

parent 26988df0
No related branches found
No related tags found
1 merge request!664Move some pressure-vessel-specific code into common code
......@@ -25,20 +25,7 @@
#include <unistd.h>
#include "bwrap-lock.h"
/*
* These compatibility definitions let us use OFD locks in older glibc
* versions. This requires Linux kernel >= v3.15.
*/
#ifndef F_OFD_GETLK
#define F_OFD_GETLK 36
#endif
#ifndef F_OFD_SETLK
#define F_OFD_SETLK 37
#endif
#ifndef F_OFD_SETLKW
#define F_OFD_SETLKW 38
#endif
#include "steam-runtime-tools/missing-internal.h"
/**
* PvBwrapLock:
......
......@@ -20,8 +20,19 @@
#pragma once
#include <fcntl.h>
#include <sys/prctl.h>
#ifndef F_OFD_GETLK
#define F_OFD_GETLK 36
#endif
#ifndef F_OFD_SETLK
#define F_OFD_SETLK 37
#endif
#ifndef F_OFD_SETLKW
#define F_OFD_SETLKW 38
#endif
#ifndef PR_GET_CHILD_SUBREAPER
#define PR_GET_CHILD_SUBREAPER 37
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment