From 9b3b938ede7bc3250c1b4ee3fa5427b3828245c5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 10 Feb 2025 11:22:16 +0100 Subject: [PATCH] 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 Part-of: --- include/os.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/os.h b/include/os.h index e26664d9a..560c7bd96 100644 --- a/include/os.h +++ b/include/os.h @@ -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 */