mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 02:50:33 +00:00
engine: linux: fix C89
This commit is contained in:
parent
f3a40ac794
commit
fbb88a55cb
@ -45,12 +45,14 @@ void Platform_Sleep( int msec )
|
|||||||
qboolean Sys_DebuggerPresent( void )
|
qboolean Sys_DebuggerPresent( void )
|
||||||
{
|
{
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
ssize_t num_read;
|
||||||
|
int status_fd;
|
||||||
|
|
||||||
int status_fd = open( "/proc/self/status", O_RDONLY );
|
status_fd = open( "/proc/self/status", O_RDONLY );
|
||||||
if ( status_fd == -1 )
|
if ( status_fd == -1 )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ssize_t num_read = read( status_fd, buf, sizeof( buf ) );
|
num_read = read( status_fd, buf, sizeof( buf ) );
|
||||||
close( status_fd );
|
close( status_fd );
|
||||||
|
|
||||||
if ( num_read > 0 )
|
if ( num_read > 0 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user