]>
Commit | Line | Data |
---|---|---|
046aeabb SS |
1 | #ifndef DFCOMPAT_H |
2 | #define DFCOMPAT_H | |
3 | ||
9b921550 SS |
4 | #define _GNU_SOURCE |
5 | ||
046aeabb SS |
6 | #include <sys/types.h> |
7 | ||
8 | #ifndef __DECONST | |
9 | #define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var)) | |
10 | #endif | |
11 | ||
0eaf0584 | 12 | #ifndef HAVE_STRLCPY |
046aeabb SS |
13 | size_t strlcpy(char *, const char *, size_t); |
14 | #endif | |
15 | ||
0eaf0584 | 16 | #ifndef HAVE_REALLOCF |
046aeabb SS |
17 | void *reallocf(void *, size_t); |
18 | #endif | |
19 | ||
0eaf0584 | 20 | #ifndef HAVE_GETPROGNAME |
046aeabb SS |
21 | const char *getprogname(void); |
22 | #endif | |
23 | ||
24 | #endif /* DFCOMPAT_H */ |