From edda59e031862e189532c516fa7d40345b89f4f6 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 19 Nov 2021 10:01:49 +0100 Subject: Fix compilation on Windows --- src/common.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 40112dc..1828476 100644 --- a/src/common.h +++ b/src/common.h @@ -156,6 +156,13 @@ char *generate_guid(void); #define __usleep(x) usleep(x) #endif +#ifndef S_IFLNK +#define S_IFLNK 0120000 +#endif +#ifndef S_ISLNK +#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) +#endif + int mkdir_with_parents(const char *dir, int mode); char *get_temp_filename(const char *prefix); -- cgit v1.1-32-gdbae