os: re-add System() function for backwards compat

This function had been unexported long ago, but the Intel driver
still needs it. Adding a tiny temporary compat wrapper, so Intel
team has time to keep up with us.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1778>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-10 11:22:16 +01:00
parent 5b6f2292a3
commit 9b3b938ede

View File

@ -410,4 +410,15 @@ typedef _sigset_t sigset_t;
#define VErrorFSigSafe(...) VErrorF(__VA_ARGS__)
#define VErrorF(...) LogVMessageVerb(X_NONE, -1, __VA_ARGS__)
/* only for backwards compat with drivers that haven't kept up yet
(xf86-video-intel)
@todo revise after next stable release
*/
_X_DEPRECATED
static inline int System(const char* cmdline)
{
return system(cmdline);
}
#endif /* OS_H */