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:
parent
5b6f2292a3
commit
9b3b938ede
11
include/os.h
11
include/os.h
|
@ -410,4 +410,15 @@ typedef _sigset_t sigset_t;
|
||||||
#define VErrorFSigSafe(...) VErrorF(__VA_ARGS__)
|
#define VErrorFSigSafe(...) VErrorF(__VA_ARGS__)
|
||||||
#define VErrorF(...) LogVMessageVerb(X_NONE, -1, __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 */
|
#endif /* OS_H */
|
||||||
|
|
Loading…
Reference in New Issue