HAMMER VFS - Major retooling of the refcount mechanics, and fix a deadlock
[dragonfly.git] / libexec / dma / dfcompat.h
blobfc962d15e66c2033e768dd3d42b5099cff371563
1 #ifndef DFCOMPAT_H
2 #define DFCOMPAT_H
4 #include <sys/types.h>
6 #ifndef __DECONST
7 #define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
8 #endif
10 #ifdef NEED_STRLCPY
11 size_t strlcpy(char *, const char *, size_t);
12 #endif
14 #ifdef NEED_REALLOCF
15 void *reallocf(void *, size_t);
16 #endif
18 #ifdef NEED_GETPROGNAME
19 const char *getprogname(void);
20 #endif
22 #endif /* DFCOMPAT_H */