summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2021-11-19 10:01:49 +0100
committerGravatar Nikias Bassen2021-11-19 10:01:49 +0100
commitedda59e031862e189532c516fa7d40345b89f4f6 (patch)
tree083a56e2415d88711dbdd4a4f9b7f2ecae63f693 /src/common.h
parent7fdd29bb8c779a66d2ea74694a08c48b81c076ec (diff)
downloadidevicerestore-edda59e031862e189532c516fa7d40345b89f4f6.tar.gz
idevicerestore-edda59e031862e189532c516fa7d40345b89f4f6.tar.bz2
Fix compilation on Windows
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h7
1 files changed, 7 insertions, 0 deletions
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);