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 */