summaryrefslogtreecommitdiffstats
path: root/contrib/dma/dfcompat.h
blob: bb0a0bbd0d5e3658dbb0b89d718dfc592d12103e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef DFCOMPAT_H
#define DFCOMPAT_H

#define _GNU_SOURCE

#include <sys/types.h>

#ifndef __DECONST
#define __DECONST(type, var)    ((type)(uintptr_t)(const void *)(var))
#endif

#ifndef HAVE_STRLCPY
size_t strlcpy(char *, const char *, size_t);
#endif

#ifndef HAVE_REALLOCF
void *reallocf(void *, size_t);
#endif

#ifndef HAVE_GETPROGNAME
const char *getprogname(void);
#endif

#endif /* DFCOMPAT_H */
OpenPOWER on IntegriCloud