diff --git a/src/builder/b-artifacts.c b/src/builder/b-artifacts.c
index f71de4b..24655db 100644
--- a/src/builder/b-artifacts.c
+++ b/src/builder/b-artifacts.c
@@ -1,7 +1,7 @@
/*
* sai-builder com-warmcat-sai client protocol implementation
*
- * Copyright (C) 2019 - 2020 Andy Green <andy@warmcat.com>
+ * Copyright (C) 2019 - 2026 Andy Green <andy@warmcat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <errno.h>
#ifdef _MSC_VER
/* don't complain about our use of open */
diff --git a/src/builder/b-deletion.c b/src/builder/b-deletion.c
index b3b3256..aab656e 100644
--- a/src/builder/b-deletion.c
+++ b/src/builder/b-deletion.c
@@ -29,6 +29,7 @@
#include <limits.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/src/builder/b-suspender.c b/src/builder/b-suspender.c
index 81818fe..980c036 100644
--- a/src/builder/b-suspender.c
+++ b/src/builder/b-suspender.c
@@ -25,6 +25,7 @@
#include <limits.h>
#include <stdlib.h>
#include <fcntl.h>
+#include <errno.h>
#include <sys/types.h>
#if !defined(WIN32)
diff --git a/src/builder/b-task.c b/src/builder/b-task.c
index 5752fd0..cde9996 100644
--- a/src/builder/b-task.c
+++ b/src/builder/b-task.c
@@ -1,7 +1,7 @@
/*
* sai-builder task acquisition
*
- * Copyright (C) 2019 - 2025 Andy Green <andy@warmcat.com>
+ * Copyright (C) 2019 - 2026 Andy Green <andy@warmcat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -23,6 +23,7 @@
#include <sys/stat.h>
#include <assert.h>
#include <fcntl.h>
+#include <errno.h>
#include "b-private.h"
diff --git a/src/device/d-sai.c b/src/device/d-sai.c
index be38f73..ff7bec2 100644
--- a/src/device/d-sai.c
+++ b/src/device/d-sai.c
@@ -1,7 +1,7 @@
/*
* sai-device
*
- * Copyright (C) 2019 - 2020 Andy Green <andy@warmcat.com>
+ * Copyright (C) 2019 - 2026 Andy Green <andy@warmcat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -39,6 +39,7 @@
#include <string.h>
#include <signal.h>
#include <fcntl.h>
+#include <errno.h>
#if defined(WIN32)
#include <initguid.h>
diff --git a/src/power/p-http-api.c b/src/power/p-http-api.c
index 6d2b05b..b1db6c8 100644
--- a/src/power/p-http-api.c
+++ b/src/power/p-http-api.c
@@ -1,7 +1,7 @@
/*
* sai-power
*
- * Copyright (C) 2019 - 2025 Andy Green <andy@warmcat.com>
+ * Copyright (C) 2019 - 2026 Andy Green <andy@warmcat.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <errno.h>
#if defined(__linux__)
#include <unistd.h>
diff --git a/src/power/p-utils.c b/src/power/p-utils.c
index 713faff..4d64b7a 100644
--- a/src/power/p-utils.c
+++ b/src/power/p-utils.c
@@ -22,6 +22,7 @@
#include <libwebsockets.h>
#include <string.h>
#include <signal.h>
+#include <errno.h>
#include "p-private.h"