commit 9d5fc3466564cbf736f9ac9b79802a15d5a6c902
parent 4c532231cb5b7d3d96f260b061d24d4ab22c5d66
Author: Chris Bracken <chris@bracken.jp>
Date: Wed, 10 Jul 2024 18:17:50 -0700
Include errno.h in place of sys/errno.h
OpenBSD expects this header to be at errno.h, which is likely where
POSIX specifies it to be. The error values themselves are in
sys/errno.h.
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gitout.c b/gitout.c
@@ -1,8 +1,8 @@
#include "gitout.h"
+#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
-#include <sys/errno.h>
#include "git/commit.h"
#include "git/file.h"
diff --git a/third_party/openbsd/reallocarray.c b/third_party/openbsd/reallocarray.c
@@ -15,9 +15,9 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <errno.h>
#include <stdint.h>
#include <stdlib.h>
-#include <sys/errno.h>
#include "reallocarray.h"
diff --git a/utils.c b/utils.c
@@ -1,10 +1,10 @@
#include "utils.h"
#include <err.h>
+#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include <string.h>
-#include <sys/errno.h>
#include <sys/stat.h>
#include <sys/types.h>