summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
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);