You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
531 B
26 lines
531 B
--- a/src/ccze-compat.h
|
|
+++ b/src/ccze-compat.h
|
|
@@ -29,6 +29,11 @@
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
+# ifndef __error_t_defined
|
|
+typedef int error_t;
|
|
+# define __error_t_defined 1
|
|
+# endif
|
|
+
|
|
#ifndef HAVE_STRNDUP
|
|
char *strndup (const char *s, size_t size);
|
|
#endif
|
|
--- a/src/ccze-compat.c
|
|
+++ b/src/ccze-compat.c
|
|
@@ -275,7 +275,7 @@
|
|
char **valuep)
|
|
{
|
|
int i = getsubopt (optionp, tokens, valuep);
|
|
-#if HAVE_SUBOPTARg
|
|
+#if HAVE_SUBOPTARG
|
|
if (!*valuep && suboptarg)
|
|
*valuep = strdup (suboptarg);
|
|
#endif
|