summaryrefslogtreecommitdiff
blob: d1f684ac26c45098383d16a010a4ff816848c76e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- src/ccze-compat.h.old	2006-10-13 12:50:16 +0200
+++ src/ccze-compat.h	2006-10-13 12:49:21 +0200
@@ -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
--- src/ccze-compat.c.old	2006-10-13 12:51:35 +0200
+++ src/ccze-compat.c	2006-10-13 12:51:44 +0200
@@ -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