dma(8): Upgrade to v0.7.
[dragonfly.git] / libexec / dma / dfcompat.h
CommitLineData
52c86e41
SS
1#ifndef DFCOMPAT_H
2#define DFCOMPAT_H
3
c8b07ee5
SW
4#define _GNU_SOURCE
5
52c86e41
SS
6#include <sys/types.h>
7
8#ifndef __DECONST
9#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
10#endif
11
c8b07ee5 12#ifndef HAVE_STRLCPY
52c86e41
SS
13size_t strlcpy(char *, const char *, size_t);
14#endif
15
c8b07ee5 16#ifndef HAVE_REALLOCF
52c86e41
SS
17void *reallocf(void *, size_t);
18#endif
19
c8b07ee5 20#ifndef HAVE_GETPROGNAME
52c86e41
SS
21const char *getprogname(void);
22#endif
23
24#endif /* DFCOMPAT_H */