summaryrefslogtreecommitdiff
path: root/src/port/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/port/string.h')
-rw-r--r--src/port/string.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/port/string.h b/src/port/string.h
new file mode 100644
index 0000000..8f96466
--- /dev/null
+++ b/src/port/string.h
@@ -0,0 +1,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 */