projects/aports·blob master · refs

41 lines · 1.3 KiB

1Defines error_t
2
3diff --git a/src/ccze.h b/src/ccze.h
4index 6f73999..c51618d 100644
5--- a/src/ccze.h
6+++ b/src/ccze.h
7@@ -22,6 +22,8 @@
8 #ifndef _CCZE_H
9 #define _CCZE_H 1
10
11+#include "error_t.h"
12+
13 #ifdef HAVE_SYSTEM_H
14 # include "system.h"
15 #endif
16diff --git a/src/error_t.h b/src/error_t.h
17new file mode 100644
18index 0000000..b6c312b
19--- /dev/null
20+++ b/src/error_t.h
21@@ -0,0 +1,20 @@
22+/* Define error_t.
23+ Copyright (C) 1991-2020 Free Software Foundation, Inc.
24+ This file is part of the GNU C Library.
25+ The GNU C Library is free software; you can redistribute it and/or
26+ modify it under the terms of the GNU Lesser General Public
27+ License as published by the Free Software Foundation; either
28+ version 2.1 of the License, or (at your option) any later version.
29+ The GNU C Library is distributed in the hope that it will be useful,
30+ but WITHOUT ANY WARRANTY; without even the implied warranty of
31+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
32+ Lesser General Public License for more details.
33+ You should have received a copy of the GNU Lesser General Public
34+ License along with the GNU C Library; if not, see
35+ <https://www.gnu.org/licenses/>. */
36+#ifndef __error_t_defined
37+# define __error_t_defined 1
38+
39+typedef int error_t;
40+
41+#endif