summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lib/perror.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/perror.c')
-rw-r--r--contrib/syslinux-4.02/com32/lib/perror.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/perror.c b/contrib/syslinux-4.02/com32/lib/perror.c
new file mode 100644
index 0000000..ff23b91
--- /dev/null
+++ b/contrib/syslinux-4.02/com32/lib/perror.c
@@ -0,0 +1,12 @@
+/*
+ * perror.c
+ */
+
+#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
+void perror(const char *s)
+{
+ fprintf(stderr, "%s: error %d\n", s, errno);
+}