sysutils/xen-guest-tools: sync with upstream

Taken from: HardenedBSD
This commit is contained in:
Franco Fichtner 2020-05-11 10:58:48 +02:00
parent b09cebebdf
commit 2c9682d679
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- tools/xenstore/utils.h.orig 2019-12-17 14:23:09 UTC
+++ tools/xenstore/utils.h
@@ -24,7 +24,7 @@ static inline bool strends(const char *a, const char *
void barf(const char *fmt, ...) __attribute__((noreturn));
void barf_perror(const char *fmt, ...) __attribute__((noreturn));
-void (*xprintf)(const char *fmt, ...);
+extern void (*xprintf)(const char *fmt, ...);
#define eprintf(_fmt, _args...) xprintf("[ERR] %s" _fmt, __FUNCTION__, ##_args)

View file

@ -0,0 +1,11 @@
--- tools/xenstore/xenstored_core.h.orig 2019-12-17 14:23:09 UTC
+++ tools/xenstore/xenstored_core.h
@@ -204,7 +204,7 @@ void finish_daemonize(void);
/* Open a pipe for signal handling */
void init_pipe(int reopen_log_pipe[2]);
-xengnttab_handle **xgt_handle;
+extern xengnttab_handle **xgt_handle;
int remember_string(struct hashtable *hash, const char *str);