summaryrefslogtreecommitdiff
path: root/lib/compat
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-20 17:37:39 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2021-03-20 17:46:14 +0100
commitb575a98826184fc34750ef2cce4fa1503938b7f2 (patch)
tree46c60e4bb49ace47ec0248bde8341c2479ee9d52 /lib/compat
parenta026990ad119b247fd01db1e32c6eaf23ecfcd6f (diff)
Fix: libcompat: add missing stdio includes
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/compat')
-rw-r--r--lib/compat/chdir.c1
-rw-r--r--lib/compat/mockups.c2
-rw-r--r--lib/compat/w32_perror.c2
3 files changed, 5 insertions, 0 deletions
diff --git a/lib/compat/chdir.c b/lib/compat/chdir.c
index 3a6ecb1..f695e2a 100644
--- a/lib/compat/chdir.c
+++ b/lib/compat/chdir.c
@@ -9,6 +9,7 @@
#ifdef _WIN32
#include <stdlib.h>
+#include <stdio.h>
int chdir(const char *path)
{
diff --git a/lib/compat/mockups.c b/lib/compat/mockups.c
index 22f0820..4c396ec 100644
--- a/lib/compat/mockups.c
+++ b/lib/compat/mockups.c
@@ -7,6 +7,8 @@
#include "config.h"
#include "compat.h"
+#include <stdio.h>
+
#ifdef _WIN32
int fchownat(int dirfd, const char *path, int uid, int gid, int flags)
{
diff --git a/lib/compat/w32_perror.c b/lib/compat/w32_perror.c
index 1268501..8c84191 100644
--- a/lib/compat/w32_perror.c
+++ b/lib/compat/w32_perror.c
@@ -7,6 +7,8 @@
#include "config.h"
#include "compat.h"
+#include <stdio.h>
+
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>