File: config.h.bot

package info (click to toggle)
xpcd 2.08-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 632 kB
  • ctags: 556
  • sloc: ansic: 6,368; makefile: 235; sh: 200; perl: 12
file content (28 lines) | stat: -rw-r--r-- 510 bytes parent folder | download | duplicates (4)
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

/* ------------------------------------------------------------ */

#ifndef HAVE_STRERROR
extern char *sys_errlist[];
#define strerror(x) (sys_errlist[x])
#endif

#ifndef HAVE_STRSIGNAL
extern char *sys_siglist[];
#define strsignal(x) (sys_siglist[x])
#endif

#ifndef HAVE_STRDUP
#define strdup(x) strcpy(malloc(strlen(x)+1),x)
#endif

#if HAVE_DIRENT_H
# include <dirent.h>
#else
# define dirent direct
# if HAVE_SYS_NDIR_H
#  include <sys/ndir.h>
# endif
# if HAVE_NDIR_H
#  include <ndir.h>
# endif
#endif