build: fix various includes for older GCC

This commit is contained in:
Christian Hergert
2019-05-09 15:15:30 -07:00
parent 1a576aa779
commit 1bd0107c54
8 changed files with 9 additions and 2 deletions

View File

@ -27,6 +27,7 @@
# include <linux/perf_event.h>
# include <sys/syscall.h>
#endif
#include <string.h>
#include <unistd.h>
#include "helpers.h"

View File

@ -22,6 +22,8 @@
#include "config.h"
#include <string.h>
#include "sysprof-capture-condition.h"
#include "sysprof-capture-cursor.h"
#include "rectangles.h"

View File

@ -24,6 +24,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>

View File

@ -25,6 +25,7 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sysprof-capture.h>
#include <unistd.h>

View File

@ -42,6 +42,7 @@
#include <gio/gio.h>
#include <glib/gi18n.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@ -429,7 +430,7 @@ sysprof_perf_get_tracepoint_config (const char *path, gint64 *config)
g_free(filename);
*config = strtoull(contents, NULL, 0);
*config = strtoull (contents, NULL, 0);
g_free (contents);

View File

@ -10,7 +10,6 @@ sysprofd_sources = [
pkglibexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
sysprofd_deps = [
dependency('libsystemd', version: '>=222'),
dependency('glib-2.0', version: glib_req_version),
dependency('gio-2.0', version: glib_req_version),
dependency('gio-unix-2.0', version: glib_req_version),

View File

@ -23,6 +23,7 @@
#include "config.h"
#include <gio/gio.h>
#include <stdlib.h>
#include "ipc-service.h"
#include "ipc-service-impl.h"

View File

@ -21,6 +21,7 @@
#include "config.h"
#include <glib/gstdio.h>
#include <string.h>
#include <sysprof-capture.h>
static void