summaryrefslogtreecommitdiff
path: root/src/port/string.h
blob: 8f964669d630107ece544ab5cf1442972f13b758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __STRING_H
#define __STRING_H

#include "sys.h"

#include <string.h>

#include <strings.h>

#ifdef HAVE_STRERROR_R
#else
/* TODO: port correctly! */
#define strerror_r( errnum, buf, buflen ) strncpy( buf, strerror( errnum ), buflen )
#endif

#endif /* ifndef __STRING_H */