Merge pull request #37 from fabled/master

various build and compile fixes
This commit is contained in:
PJ Waskiewicz 2017-01-17 12:11:10 -05:00 committed by GitHub
commit 54cb9bfa92
3 changed files with 7 additions and 1 deletions

View file

@ -330,7 +330,9 @@ gboolean sock_handle(gint fd, GIOCondition condition, gpointer user_data __attri
int valid_user = 0;
struct iovec iov = { buff, 500 };
struct msghdr msg = { NULL, 0, &iov, 1, NULL, 0, 0 };
struct msghdr msg = { 0 };
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
msg.msg_control = malloc(CMSG_SPACE(sizeof(struct ucred)));
msg.msg_controllen = CMSG_SPACE(sizeof(struct ucred));

View file

@ -148,6 +148,9 @@ GList* collect_full_irq_list()
char *line = NULL;
size_t size = 0;
char *irq_name, *irq_mod, *savedptr, *last_token, *p;
#ifdef AARCH64
char *tmp;
#endif
file = fopen("/proc/interrupts", "r");
if (!file)

View file

@ -3,6 +3,7 @@
#include <errno.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>