libsysprof-capture: Use POSIX environment functions instead of GLib ones

They are equivalent.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-07-02 12:18:24 +01:00
parent e8a6474236
commit f5cf12ae40
2 changed files with 4 additions and 4 deletions

View File

@ -1361,7 +1361,7 @@ sysprof_capture_writer_new_from_env (size_t buffer_size)
const char *fdstr;
int fd;
if (!(fdstr = g_getenv ("SYSPROF_TRACE_FD")))
if (!(fdstr = getenv ("SYSPROF_TRACE_FD")))
return NULL;
/* Make sure the clock is initialized */