File: compat.h

package info (click to toggle)
ezstream 1.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,832 kB
  • sloc: ansic: 9,693; sh: 4,967; xml: 398; makefile: 230
file content (36 lines) | stat: -rw-r--r-- 778 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __COMPAT_H__
#define __COMPAT_H__

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif /* HAVE_CONFIG_H */

#include <sys/types.h>

#ifndef HAVE_GETOPT
extern int	 opterr;
extern int	 optind;
extern int	 optopt;
extern int	 optreset;
extern char	*optarg;

int	getopt(int, char * const *, const char *);
#endif /* !HAVE_GETOPT */

#ifndef HAVE_STRLCAT
size_t strlcat(char *, const char *, size_t);
#endif /* !HAVE_STRLCAT */

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

#ifndef HAVE_STRTONUM
long long strtonum(const char *, long long, long long, const char **);
#endif /* !HAVE_STROTONUM */

#ifndef HAVE_REALLOCARRAY
void *	reallocarray(void *, size_t, size_t);
#endif /* !HAVE_REALLOCARRAY */

#endif /* __COMPAT_H__ */