It existed on my local disk, of course. Just copy over xzmalloc().
#include <wayland-client.h>
#include "../shared/os-compatibility.h"
-#include "xmalloc.h"
struct device {
enum { KEYBOARD, POINTER } type;
buffer_release
};
+static inline void *
+xzalloc(size_t s)
+{
+ void *p;
+
+ p = calloc(1, s);
+ if (p == NULL) {
+ fprintf(stderr, "%s: out of memory\n", program_invocation_short_name);
+ exit(EXIT_FAILURE);
+ }
+
+ return p;
+}
+
static int
attach_buffer(struct window *window, int width, int height)
{