sbin/hammer: Fix whitespace alignment changed by e0d7dd09
[dragonfly.git] / libexec / dma / dfcompat.h
blobbb0a0bbd0d5e3658dbb0b89d718dfc592d12103e
1 #ifndef DFCOMPAT_H
2 #define DFCOMPAT_H
4 #define _GNU_SOURCE
6 #include <sys/types.h>
8 #ifndef __DECONST
9 #define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
10 #endif
12 #ifndef HAVE_STRLCPY
13 size_t strlcpy(char *, const char *, size_t);
14 #endif
16 #ifndef HAVE_REALLOCF
17 void *reallocf(void *, size_t);
18 #endif
20 #ifndef HAVE_GETPROGNAME
21 const char *getprogname(void);
22 #endif
24 #endif /* DFCOMPAT_H */