1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-26 19:47:08 +00:00
termux-packages/packages/gcal/gnulib.patch
Henrik Grimler bf51d022ef
gcal: include sys/types.h instead of stdint.h in gnulib patch
This makes compilation work on 32bit arches, as well as 64bit arches.
2021-11-11 10:05:32 +01:00

24 lines
826 B
Diff

--- ./lib/freading.c.orig 2021-11-10 19:59:55.538541462 +0100
+++ ./lib/freading.c 2021-11-10 20:00:12.808525987 +0100
@@ -14,6 +14,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#include <sys/types.h>
+#include <bits/struct_file.h>
+
#include <config.h>
/* Specification. */
--- ./lib/stdio-impl.h.orig 2021-11-10 19:59:05.885252656 +0100
+++ ./lib/stdio-impl.h 2021-11-10 19:59:26.848567182 +0100
@@ -27,6 +27,8 @@
#endif
#include <errno.h> /* For detecting Plan9. */
+#include <sys/types.h>
+#include <bits/struct_file.h>
#if defined __sferror || defined __DragonFly__ || defined __ANDROID__
/* FreeBSD, NetBSD, OpenBSD, DragonFly, Mac OS X, Cygwin, Minix 3, Android */